decodebase64(
decodebase64(
TEXT
)

The decodebase64( function decodes data using Base64.

Parameters

This function has one parameter:

text – is the text to be decoded. This text must have been encoded using Base64.

Description

This function decodes data using Base64 encoding. Base64 encoding is widely used on the web and in e-mail for encoding binary data and allowing it to be transmitted as text. See Base64 Encoding in Wikipedia for more information.

This example converts a message into Base64 format:

    packet=encodebase64(message)

Later the packet can be converted back into the original data like this:

    original=decodebase64(packet)

If the original value was text, you would need to explicitly convert it back to text after decoding it, as shown below. Note: the final result of this will be a Unicode string.

    original=binarytotext(decodebase64(packet))

See Also

- encodebase64( -- encodes data using Base64.

History

Version | Status | Notes
10.0 | Updated | Carried over from Panorama 6.0, but now returns binary data type.