Hi i'm new here and i develop a sample application in android.

This app make this:

1) read remote data from mysql server (work fine)
2) receive all data with json (work well)
3) convert base 64 string to image (don't work)

the third point i do this

byte[]
decodedString=Base64.decode(json_data.getString("immagine"),Base64.DEFAULT);
                            InputStream ins =new 
ByteArrayInputStream(decodedString);
                                   // Drawable dUser = 
Drawable.createFromStream(ins ,
"immagine");
                                                   //
image.setImageDrawable(dUser);

                                    //Bitmap bmp = 
BitmapFactory.decodeByteArray(baos, 0,
size);
                                    image.setImageDrawable(new
BitmapDrawable(getResources(), ins));

i try a lot of way but i can't see nobody image on my listview.
Can someone help me?

Thanks

-- 
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

Reply via email to