Java tutorial
//package com.java2s; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { public static Bitmap byteToDrawable(Context context, byte[] bb) { Bitmap pp = BitmapFactory.decodeByteArray(bb, 0, bb.length); return pp; } }