I have a problem with this method "decodeByteArray()" when i try to decode from a byte array an image as a Bitmap.
I explain it better: I receive from a web server an XML file, which also contains a thumbnail and some data. I parse this file with SAX, so I can build an object populated with all data, thumbnail included, as String. Then I need to set the thumbnail into a ImageView, so I convert the thumbanil string to byteArray with getBytes() and use it in this way: byte[] dataImg = thumbnail_string.getBytes(); Bitmap b = BitmapFactory.decodeByteArray(dataImg, 0, dataImg.length); At this point b is null and I can't set it into the ImageView. I think it could be a problem of encoding/decoding.... any suggestions? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

