I want to convert a byte array to an image ,For that I used the code
final BufferedImage bufferedImage = ImageIO.read(new ByteArrayInputStream(decrpt));
Hope this code will help you:
byte[] data = item1.getBytes(); Bitmap bmp = BitmapFactory.decodeByteArray(data, 0, data.length); imageview.setImageBitmap(bmp);