List of utility methods to do BufferedImage from Byte Array
BufferedImage | getImage(byte[] imageBytes) Get a buffered image of the image bytes BufferedImage image = null; if (imageBytes != null) { ByteArrayInputStream stream = new ByteArrayInputStream(imageBytes); image = ImageIO.read(stream); stream.close(); return image; |
BufferedImage | getImage(byte[] imageBytes) get the image from the given bytes ByteArrayInputStream jpgIn = new ByteArrayInputStream(imageBytes); BufferedImage bufImg = getImage(jpgIn); return bufImg; |