Java tutorial
//package com.java2s; import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { /** * This method converts a byte array to a bitmap image. * * @param byteArray * @return */ public static Bitmap getBitmapFromBytes(byte[] byteArray) { return BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length); } }