Java tutorial
//package com.java2s; //License from project: Creative Commons License import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { public static Bitmap getImage(byte[] image) { if (image == null || image.length == 0) { return null; } return BitmapFactory.decodeByteArray(image, 0, image.length); } }