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