Java tutorial
//package com.java2s; //License from project: Open Source License import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { public static Bitmap bytes2Bitmap(byte[] data) { if (data == null) { return null; } return BitmapFactory.decodeByteArray(data, 0, data.length); } }