Java Utililty Methods Base64 Encode

List of utility methods to do Base64 Encode

Description

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

Method

StringtoBase64(String value)
to Base
return new String(encodeBase64(value.getBytes(), false));
StringtoBase64Impl(byte[] data)
to Base Impl
if (data == null) {
    return null;
int len = data.length;
if (len == 0) {
    return "";
int olen = 4 * ((len + 2) / 3);
...
StringtoBase64String(byte[] array)
Encodes given array as Base64 with ISO-8859-1 character set.
return Base64.getEncoder().encodeToString(array);
StringtoBase64String(byte[] data)
to Base String
return Base64.getEncoder().encodeToString(data);