EncodeBase64 (open)

Encodes a string into a base-64 encoded string

Syntax

// Core function, no LOADLIB necessary

STRING FUNCTION EncodeBase64(STRING text)

Parameters

STRING text

String to encode

Return value

STRING

The encoded string

Description

This function encodes a string to base-64 encoding. This encoding is often used in MIME-transported messages

Examples

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

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