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