Here you can find the source of bytes2Bitmap(byte[] b)
public static Bitmap bytes2Bitmap(byte[] b)
//package com.java2s; import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { public static Bitmap bytes2Bitmap(byte[] b) { if (b.length != 0) { return BitmapFactory.decodeByteArray(b, 0, b.length); } else {// w w w . j a v a2s . co m return null; } } }