Java Base64 Decode decodeBase64Mime(String encoded)

Here you can find the source of decodeBase64Mime(String encoded)

Description

decode Base Mime

License

Apache License

Declaration

public static String decodeBase64Mime(String encoded) throws UnsupportedEncodingException 

Method Source Code


//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
}

Related

  1. decodeBase64(String data)
  2. decodeBase64(String data)
  3. decodeBASE64(String pEncoded)
  4. decodeBase64(String str)
  5. decodeBase64AsUtf8(String data)
  6. decodeBase64String(String str)