public class ImaBase64
extends Object
The ImaBase64 class provides static methods for efficient between byte arrays and base64 strings.
Modifier and Type | Field and Description |
---|---|
static String |
COPYRIGHT |
Modifier and Type | Method and Description |
---|---|
static byte[] |
fromBase64(String from)
Convert from a base64 string to a byte array.
|
static String |
toBase64(byte[] from)
Convert a byte array to a base64 string.
|
public static final String COPYRIGHT
public static String toBase64(byte[] from)
from
- The source byte arraypublic static byte[] fromBase64(String from)
from
- The input string in base64 which must be a multiple of 4 bytesCopyright © Contributors to the Eclipse Foundation 2014-2021