Convert Byte array to Bitmap Image – Android

Get byte array from database and store it in imageBytes

byte[] imageBytes=db.getImage() ;
// db.getImage() returns Byte array (BLOB)

  Bitmap bitmap = BitmapFactory.decodeByteArray(imageBytes, 0, imageBytes.length);

Leave a Reply

Your email address will not be published. Required fields are marked *