Java tutorial
//package com.java2s; import java.io.ByteArrayInputStream; import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { public static Bitmap convertByteArrayToBitmap(byte[] byteArray) { if (byteArray != null) { ByteArrayInputStream imageStream = new ByteArrayInputStream(byteArray); return BitmapFactory.decodeStream(imageStream); } else { return null; } } }