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