Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import org.apache.commons.codec.binary.Base64;

public class Main {

    public static byte[] decodeBASE64(String s) {
        if (s == null)
            return null;
        try {
            return Base64.decodeBase64(s.getBytes());
        } catch (Exception e) {
            return null;
        }
    }
}