ToBase64Url

The ToBase64Url() function encodes a text or a file to a base64 encoded text which is safe to use in URLs.

WIKI: https://en.wikipedia.org/wiki/Base64#The_URL_applications

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 that is safe to use in URLs.

Syntax

ToBase64Url(text)

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

ToBase64Url(file)

ToBase64Url( [File] ) => "U29tZV..... .... .... IgMTIzNA"

Parameters

NameTypeRequiredDescription

text

text

a text

file

file

a file

Last updated