base64Encode

Function: base64Encode()

Encodes a string containing bytes using base64

Syntax

base64Encode(value [, format])

Argument

Type

Description

Argument

Type

Description

value

String

A string of bytes to be encoded

format

String (Optional)

BASIC: standard base64 algorithm,
URL: Url safe variant,
MIME: Mime compatible.

Defaults to BASIC

Examples

base64Encode(in.value)

Returns the string "MjE0MzU=" where the attribute in.value contains a string "21435".

See Also