Here you can find the source of createBitmapFromByteArray(byte[] data)
public static Bitmap createBitmapFromByteArray(byte[] data)
//package com.java2s; import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { public static Bitmap createBitmapFromByteArray(byte[] data) { return BitmapFactory.decodeByteArray(data, 0, data.length); }// ww w.jav a2 s .com }