Java tutorial
//package com.java2s; import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { public static Bitmap unFlattenBitmap(byte[] bitmapData) { Bitmap bitmap = null; if (bitmapData != null && bitmapData.length > 0) { bitmap = BitmapFactory.decodeByteArray(bitmapData, 0, bitmapData.length); } return bitmap; } }