Java tutorial
//package com.java2s; //License from project: Open Source License import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { /** * raw byteArray into Bitmap * * @param image the byteArray * @return Bitmap */ public static Bitmap imgToBitmap(final byte[] image) { if (image == null) return null; return BitmapFactory.decodeByteArray(image, 0, image.length); } }