Here you can find the source of byteToDrawable(byte[] byteArray)
public static Drawable byteToDrawable(byte[] byteArray)
//package com.java2s; import java.io.ByteArrayInputStream; import android.graphics.drawable.Drawable; public class Main { public static Drawable byteToDrawable(byte[] byteArray) { ByteArrayInputStream ins = new ByteArrayInputStream(byteArray); return Drawable.createFromStream(ins, null); }//from w w w .j a v a 2s. c o m }