Skip to main content
Version: 4.17.2

Base64 component

The Base64 component translates a body to or from a Base64 encoding.

Short description of Base64:

Base64 is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format. This makes it possible to put binary files, temporarily, on the header.

note

Base64 strings can become quite large, when used in headers we suggest not to view them in the tracing.

Configuration

The Base64 component has the following configuration options:

Marshal

Determines if you want to translate the body to or from Base64. On translates the body to a Base64 string and Off unwraps a Base64 string back to the type it was before encoding it.

base64 in http calls

When you post to a webservice using the Http Component and you have a Base64 representation of a binary file on a header, you sent all the headers, including your Base64 representation. This might lead to the external webservice not accepting your request or not allowing such large headers.
Use the Remove Headers Component to remove the header completely or use Exclude headers in the Http Component and then call the webservice.

convert base64 into single string

If your Base64 string is truncated and you want to convert it into a single line string you can use this Regex expression (?:\r\n|\r|\n) in the Replace Component and replace it with nothing.