Is there any way that I can convert a base64 String to image in Android? I am receiving this base64 String in a xml from the server connected through socket.
Have a look at http://www.source-code.biz/base64coder/java/ or any other example that converts base64 strings to byte-arrays, and then use the ImageIcon(byte[] imageData)
constructor.
There are now Base64 utilities in Android, but they only became available with Android OS 2.2.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With