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