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