Here you can find the source of base64decode(String text)
public static String base64decode(String text)
//package com.java2s; //License from project: Open Source License import java.io.IOException; import sun.misc.BASE64Decoder; public class Main { private static final String DEFAULT_ENCODING = "UTF-8"; private static final BASE64Decoder dec = new BASE64Decoder(); public static String base64decode(String text) { try {/*from www.j av a2 s.com*/ return new String(dec.decodeBuffer(text), DEFAULT_ENCODING); } catch (IOException e) { return null; } } }