Android Byte Array to Drawable Convert byteToDrawable(byte[] byteArray)

Here you can find the source of byteToDrawable(byte[] byteArray)

Description

byte To Drawable

Declaration

public static Drawable byteToDrawable(byte[] byteArray) 

Method Source Code

//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
}