get Image from byte array - Java 2D Graphics

Java examples for 2D Graphics:Image Load

Description

get Image from byte array

Demo Code


//package com.java2s;

import java.awt.Image;
import java.awt.Toolkit;

public class Main {
    public static Image getImage(byte[] data) {
        return Toolkit.getDefaultToolkit().createImage(data);
    }//w  w w  .  j  a  v a2s  . c o m
}

Related Tutorials