With my android app, I want to upload some text and image in a server. My problem is how to convert an image(from my phone) to a json object or json array.
(I use 1.6 android sdk for my app)
With my android app, I want to upload some text and image in a
Share
Usually you encode binary data as Base64. This allows to represent any kind of byte data as text. Consider the fact that the image is expanding by the ratio 4:3.
Edit: How to convert a image into Base64 string? (here you’ll find a Base64 helper for API less than 8)