Here you can find the source of convertByteArrayToBitmap(byte[] b)
public static Bitmap convertByteArrayToBitmap(byte[] b)
//package com.java2s; import java.io.ByteArrayInputStream; import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { public static Bitmap convertByteArrayToBitmap(byte[] b) { if (b == null) { return null; }//from w ww .j a v a 2 s . co m ByteArrayInputStream imageStream = new ByteArrayInputStream(b); Bitmap theImage = BitmapFactory.decodeStream(imageStream); return theImage; } }