In my application I have faced a small issue in encoding and decoding images to String and pass it to web service. After getting the bitmap image, I convert it into byte[] and encode to String value but in Some cases it shows error I don't know why it comes. And one more doubt is Base64 class only supports to convert Bitmap image to String or any other tools available to do the same.
Thanks in advance...
Try My Below Sample Code Of Project
In the case of OutOfMemoryError, below code helps me.
Basically what i did is : i catch OutofMemoryError and in that catch block i resize it by 50% and then i encode it to string.