Java BufferedImage from Byte Array fromByteArray(byte[] byteArray)

Here you can find the source of fromByteArray(byte[] byteArray)

Description

from Byte Array

License

Open Source License

Declaration

public static BufferedImage fromByteArray(byte[] byteArray) 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.ByteArrayInputStream;

import java.io.IOException;

public class Main {
    public static BufferedImage fromByteArray(byte[] byteArray) throws IOException {
        return ImageIO.read(new ByteArrayInputStream(byteArray));
    }//  w  w  w . j  a  v a  2 s.  co m
}

Related

  1. decodeForRGBBufferedImage(String filePath)
  2. fromByteArray(byte[] bytes)
  3. fromByteArray(byte[] data)
  4. fromByteArray(byte[] imagebytes)
  5. fromByteIntensity(BufferedImage image, byte[] bytes)