Here you can find the source of decode(String base64)
public static byte[] decode(String base64) throws Exception
//package com.java2s; //License from project: Open Source License import java.io.IOException; import sun.misc.BASE64Decoder; public class Main { public static byte[] decode(String base64) throws Exception { return Base64Decode(base64); }//from w ww. jav a 2 s. co m public static byte[] Base64Decode(String str) throws IOException { return new BASE64Decoder().decodeBuffer(str); } }