encodeBase64
Description
Encodes a string into its Base64 representation.
Syntax
Like many functions in DataPrime, encodeBase64
supports two notations, function and method notation. These interchangeable forms allow flexibility in how you structure expressions.
Arguments
Name | Type | Required | Description |
---|---|---|---|
value | string | true | The string to encode into Base64 |
Example
Encode a URL into Base64
Consider the following document:
Use encodeBase64
to transform the URL into a Base64-encoded string:
Output
{
"path": "/home",
"domain": "coralogix.com",
"full_url": "https://coralogix.com/home",
"full_url_encoded": "aHR0cHM6Ly9jb3JhbG9naXguY29tL2hvbWU="
}
Theme
Light