Java tutorial
//package com.java2s; import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { public static Bitmap convertByteArrayTobitmap(byte[] imgdata) { Bitmap bmp = null; try { bmp = BitmapFactory.decodeByteArray(imgdata, 0, imgdata.length); } catch (Exception e) { } return bmp; } }