Base64 Encode
Configuration reference for the Base64 Encode Pipes valve and its supported options.
Introduction
Section titled “Introduction”This valve encodes item properties using base 64. The encoded value can replace the source value or replace/create a new named property.
Note that items only support string properties, meaning that this valve will base 64 encode the binary value of a (string) property. A real binary value (like a PDF document or an image) must be base 64 encoded before added to an item.
Configuration
Section titled “Configuration”| Name | Description | Default | Mandatory | Expanded |
|---|---|---|---|---|
name | Name of target item property to receive the base 64 encoded value. (compat: dest). | |||
value | Value to encode. (compat: src). | |||
url_safe | Flag turning on URL safe encoding. | false | ||
replace | Flag to turn off replace of target property. When turned off, value will be added to already existing properties (creating a multi-valued property). | true |
{ "name" : "Base64Encode", "config" : { "name" : "b64", "value" : "${item.plain}", "url_safe": true }}