Java Byte Array to BufferedImage byteToBufferedImage(byte[] imgBytes)

Here you can find the source of byteToBufferedImage(byte[] imgBytes)

Description

byte To Buffered Image

License

Open Source License

Declaration

public static BufferedImage byteToBufferedImage(byte[] imgBytes)
            throws IOException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.*;

public class Main {
    public static BufferedImage byteToBufferedImage(byte[] imgBytes)
            throws IOException {
        InputStream in = new ByteArrayInputStream(imgBytes);
        BufferedImage bImageFromConvert = ImageIO.read(in);
        return bImageFromConvert;
    }//from  w  w w.  jav a2s.  com
}

Related

  1. bytesToBufferedImage(final byte[] imageData)
  2. bytesToImage(byte[] buf)
  3. bytesToImage(byte[] imageData)
  4. bytesToImage(byte[] imageData)
  5. byteToBufferedImage(byte[] buff)