get Bitmap From Byte array - Android android.graphics

Android examples for android.graphics:Bitmap Create

Description

get Bitmap From Byte array

Demo Code

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.Base64;
import android.util.Log;
import java.io.ByteArrayOutputStream;

public class Main{

    public static final Bitmap getBitmapFromByte(byte[] bytes) {
        return BitmapFactory.decodeByteArray(bytes, 0, bytes.length);
    }/*from w  ww  .java 2 s .co  m*/

}

Related Tutorials