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