ToBase64()
Calculates the Base64 representation of a string or binary object.
The Base64 format uses printable characters, allowing binary data to be sent in forms and e-mail, and stored in a database or file.
ToBase64( strOrBin=any, encoding=string );
Returns: String
Examples
dump(ToBase64("ToBase64")); // VG9CYXNlNjQ=
See also
- Binary data
- ImageReadBase64()
- ImageWriteBase64()
- ToBinary()
- string.toBase64()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)