Here you can find the source of decodeBase64(String str)
public static String decodeBase64(String str)
//package com.java2s; //License from project: Apache License import java.io.IOException; public class Main { public static String decodeBase64(String str) { if ("".equals(str) && null == str) { return null; } else {//from ww w . j av a2 s . c o m try { byte[] b = new sun.misc.BASE64Decoder().decodeBuffer(str); return new String(b); } catch (IOException e) { e.printStackTrace(); return null; } } } }