tags:

views:

46

answers:

1

Is it possible to do this? I'm reading an XML file that has the Base64 string of an image. I'm planning to use Base64.decode to have the byte array of the image string. I'm stuck though on how to use it in an ImageView. Do i have to create a 'drawable' class first then set it to ImageView's src property?

Thanks!

+1  A: 

You can use BitmapFactory.decodeByteArray() to perform the decoding.

Romain Guy
yes. thanks for the input.
firnnauriel
here's the link to a clear sample code: http://www.higherpass.com/Android/Tutorials/Working-With-Images-In-Android/2/
firnnauriel