Create Bitmap Image from byte array - Android Graphics

Android examples for Graphics:Bitmap Read

Description

Create Bitmap Image from byte array

Demo Code


//package com.java2s;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class Main {
    public static Bitmap getImage(byte[] image) {
        return BitmapFactory.decodeByteArray(image, 0, image.length);
    }// ww w .j  ava2  s. co m
}

Related Tutorials