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