Java tutorial
//package com.java2s; //License from project: Apache License import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { private static Bitmap bytes2Bitmap(final byte[] bytes) { return (bytes == null || bytes.length <= 0) ? null : BitmapFactory.decodeByteArray(bytes, 0, bytes.length); } }