ToBase64

The ToBase64() function encodes a text or a file to base64 encoded text.

This function is NOT SQL compatible. For more information about SQL compatibility, see our documentation.

Encoding is carried out using the UTF8 charset.

Returns a base64 encoded text.

If the parameter is not a valid text or a file, unknown is returned.

Syntax

ToBase64(text)

ToBase64("SomeText or Other 1234") => "U29tZVRleHQgb3IgT3RoZXIgMTIzNA=="

ToBase64(file)

ToBase64([File Field]) => "U29t... all-base64 chars to represent file ... IgT3RoZXI=="

Parameters

NameTypeRequiredDescription

text

text

a text

file

file

a file

Last updated