Java tutorial
//package com.java2s; //License from project: Open Source License import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { public static Bitmap decodeByteArray(byte[] data) { return decodeByteArray(data, 0, data.length); } public static Bitmap decodeByteArray(byte[] data, int offset, int length) { return BitmapFactory.decodeByteArray(data, offset, length); } }