Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.util.Base64;

public class Main {
    public static byte[] base64ToByte(String base64Str) {
        try {
            return Base64.decode(base64Str, Base64.DEFAULT);
        } catch (Exception e) {
            // TODO: handle exception
        }
        return new byte[0];
    }
}