// raw bytes to BufferedImage import java.awt.image.BufferedImage; import java.io.ByteArrayInputStream; import javax.imageio.ImageIO; ... BufferedImage image = ImageIO.read ( new ByteArrayInputStream ( rawImageBytes ) );