Java Base64 Decode decodeBase64String(String str)

Here you can find the source of decodeBase64String(String str)

Description

decode Base String

License

Open Source License

Declaration

public static String decodeBase64String(String str) throws IOException 

Method Source Code


//package com.java2s;
import sun.misc.BASE64Decoder;

import java.io.IOException;

public class Main {

    public static String decodeBase64String(String str) throws IOException {
        BASE64Decoder encoder = new BASE64Decoder();
        return new String(encoder.decodeBuffer(str));
    }/*from w w  w . jav  a  2s  .c o m*/
}

Related

  1. decodeBase64(String data)
  2. decodeBASE64(String pEncoded)
  3. decodeBase64(String str)
  4. decodeBase64AsUtf8(String data)
  5. decodeBase64Mime(String encoded)