DecodeBase64 (open)

Decodes a base-64 encoded string.

Syntax

// Core function, no LOADLIB necessary

STRING FUNCTION DecodeBase64(STRING text)

Parameters

STRING text

String to decode

Return value

STRING

The decoded string

Description

DecodeBase64 will decode a Base-64 encoded string to its original value. This encoding is often used in MIME-transported messages

Examples

// returns "Hello, World"
STRING example1 := DecodeBase64("SGVsbG8sIFdvcmxk");

// returns "123"
STRING example2 := DecodeBase64("MTIz");