Java Base64 Decode decode(String base64Code)

Here you can find the source of decode(String base64Code)

Description

decode

License

Open Source License

Declaration

public static byte[] decode(String base64Code) 

Method Source Code


//package com.java2s;
import java.io.IOException;

public class Main {

    public static byte[] decode(String base64Code) {
        if (base64Code == null) {
            return null;
        }// w w  w.  j  ava  2  s . com

        try {
            return new sun.misc.BASE64Decoder().decodeBuffer(base64Code);
        } catch (IOException exception) {
            return null;
        }
    }
}

Related

  1. base64decode(String text)
  2. base64decodebyte(String txt)
  3. base64Decoder(char[] src, int start)
  4. base64decodeString(String inputString)
  5. decode(String base64)
  6. decodeBase64(char[] data)
  7. decodeBASE64(InputStream in, OutputStream out)
  8. decodeBase64(InputStream is, OutputStream os)
  9. decodeBase64(String base64Data)