Base64: Encode Node
The Base64: Encode Node allows you encode a a string or binary array on the payload into Base64 string format, and store that result on the payload for later use.
This node is only available in Embedded Workflows. If you would like to encode data in any of the other workflow classes, you can do so using the {{encodeBase64}} helper.

Node Properties
The Base64: Encode Node's configuration has a single section ...
Configuration
Define the data source and the destination for the result:
- Source Path: The payload path to the data to encode.
- Encoded Result Path: The payload path at which to store the result.
Node Example
In the above example, the workflow will encode the string at the working.source path and place the Base64 encoded string at the working.base64String path. So, for example, given the following payload:
{
"working": {
"source": "My string"
},
...
}
The payload after execution of the Base64: Encode Node would look like:
{
"working": {
"source": "My string",
"base64String": "TXkgc3RyaW5n"
},
...
}
Node Errors
In the case that the provided input is not a valid array of numbers or a string, the workflow will error.
Related Nodes
Was this page helpful?
Still looking for help? You can also search the Losant Forums or submit your question there.