Base64 flow-node

The flow-node methods, parameters, and output for the Base64 flow-node are described in the following sections. The Base64 flow-node is created when NPM installs the @axway/api-builder-plugin-fn-base64 plugin. The Base64 flow-node plugin is included in the default application, but it can be removed.

Methods

The Base64 flow-node default methods are:

  • Decode - Decodes base64 encoded data.
  • Encode - Encodes base64 data.

Parameters

The Base64 flow-node parameters are described in the following sections.

Decode parameters

The Decode method parameters are:

Parameter Type Default Description Configuration selection

data

string - The date to decode. Selector, String

as

string "buffer" Expected decoded data format. Selector, String

The as parameter can be enabled or disabled.

Encode parameters

The Encode method parameter is:

Parameter Type Description Configuration selection

data

any The data to encode. Selector, String, Number, Boolean, Object, Array, Null

Outputs

The Base64 flow-node outputs are described in the following sections.

Decode outputs

The Decode method outputs are:

Output Type Description Save output value as:

Decoded

string The base64 decoded data.

$.decoded

Error

any -

$.b64error

Encode outputs

The Encode method output is:

Output Type Description Save output value as:

Encoded

string The base64 encoded data.

$.b64data

Related Links