Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.Base64;

public class Main {
    private static final int BASE64_FLAGS = Base64.DEFAULT;

    public static Bitmap deserialize(String bitmapBase64) {
        byte[] byteArray = Base64.decode(bitmapBase64, BASE64_FLAGS);
        Bitmap poster = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length);
        return poster;
    }
}