com.apama.util
Event Base64
Base64 encoding and decoding support.
base64ToString
string static base64ToString(string base64)
Decode a Base64-encoded string. Ignores any embedded whitespace.
This method only supports decoding UTF-8-encoded text, you cannot use it to decode arbitrary binary data encoded as Base64.- Parameters:
- base64 - A Base64-encoded string.
- Returns:
- The string that was encoded.
- Throws:
- Throws PluginException if base64 is not a Base64-encoded string, or if the content is not a UTF-8 string.
stringToBase64
string static stringToBase64(string input)
Encode a string in Base64. Adds appropriate == padding and splits long lines with \n newlines.- Parameters:
- input - The string to encode in Base64.
- Returns:
- A Base64-encoded string.