Java Utililty Methods Base64 Decode

List of utility methods to do Base64 Decode

Description

The list of methods to do Base64 Decode are organized into topic(s).

Method

byte[]base64CodeDecode(String fileData)
base Code Decode
if (fileData == null) {
    return null;
BASE64Decoder decoder = new BASE64Decoder();
try {
    return decoder.decodeBuffer(fileData);
} catch (IOException e) {
    e.printStackTrace();
...
byte[]Base64Decode(byte[] base64Data)
Base Decode
return Base64.getDecoder().decode(base64Data);
byte[]base64Decode(byte[] data)
Base64 decoding using Base64#getDecoder() decoder
return Base64.getDecoder().decode(data);
byte[]base64Decode(byte[] textBytes)
base Decode
System.out.println("decoding fileBytes");
byte[] bytes = Base64.getDecoder().decode(textBytes);
return bytes;
byte[]base64Decode(char[] a_data)
Decodes a BASE-64 encoded stream to recover the original data.
int l_tempLen = a_data.length;
for (char anA_data1 : a_data) {
    if ((anA_data1 > 255) || s_codes[anA_data1] < 0) {
        --l_tempLen; 
int l_len = (l_tempLen / 4) * 3;
if ((l_tempLen % 4) == 3) {
...
byte[]base64Decode(final String data)
base Decode
return Base64.getDecoder().decode(data);
byte[]base64Decode(final String s)
base Decode
return base64Decode(s.toCharArray());
Stringbase64Decode(String _s, String _enc)
base 64 decoding
if (_s == null)
    return null;
if (_enc == null)
    _enc = ISO_8859_1;
try {
    return new String(decode64(_s), _enc);
} catch (UnsupportedEncodingException uee) {
return null;
byte[]base64Decode(String b64)
Decode a Base-64 string into a byte array.
ByteArrayOutputStream result = new ByteArrayOutputStream();
int state = 0, i;
byte temp = 0;
for (i = 0; i < b64.length(); i++) {
    if (Character.isWhitespace(b64.charAt(i))) {
        continue;
    if (b64.charAt(i) == BASE_64_PAD) {
...
Stringbase64Decode(String base64Str)
base Decode
byte[] buffer = Base64.getDecoder().decode(base64Str);
return new String(buffer);