Hi All,
How To Fetch Image From my own database...?? Am getting Null Pointer
Exception While am Running my app...
Cursor cr;
ImageView myImage = (ImageView) findViewById(R.id.image);
byte[] bb = cr.getBlob(cr.getColumnIndex("pharmPic"));
Bitmap bm = BitmapFactory.decodeByteArray(bb, 0, bb.length);
myImage.setImageBitmap(bm);
"pharmPic"(BLOB) is my field name in my database table.
Plz Help me out in this query asap.
Regards,
Yogi
--
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