Java tutorial
//package com.java2s; //License from project: Apache License import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { public static Bitmap decodeByteArray(byte[] src, int offset, int len) { if (null == src || len <= 0 || offset < 0) { return null; } return BitmapFactory.decodeByteArray(src, offset, len); } }