X4 Produktdokumentation

Base64 Converter

This adapter encodes or decodes data in Base64 encoding. When decoding, the adapter differentiates according to the MIME type: If the MIME type is text/xml or application/xml, then the input document is interpreted as an XML document and the text content of the root element is decoded, otherwise the entire document is interpreted as a Base64-encoded string.

Properties

Operation

Describes which operation the adapter performs.

Possible values:

  • Encode: Base64-encode data

  • Decode: Decode data to Base64 encoding (depending on MIME type)

Parameters

chunk

Divide output into 76-character blocks.
The parameter is only taken into account if the Operation is set to Encode.

Possible values:

  • true: Divide the string into blocks of lines

  • false: Do not divide the string (default)

encoding

Character encoding used

Possible values: String with the character encoding used, e.g. UTF-8 (default), Windows-1251, ISO-8859-1, ...


Status values

1

The operation was successful.

-1

The operation failed due to a technical error.