base 64 string image encode and decode on mobile/server