Here you can find the source of decodeBase64Mime(String encoded)
public static String decodeBase64Mime(String encoded) throws UnsupportedEncodingException
//package com.java2s; //License from project: Apache License import java.io.UnsupportedEncodingException; import java.util.Base64; public class Main { public static String decodeBase64Mime(String encoded) throws UnsupportedEncodingException { byte[] decoded_bytes = Base64.getMimeDecoder().decode(encoded); return new String(decoded_bytes, "UTF-8"); }//w w w . j a v a 2 s .c o m }