Contact Us 1-800-596-4880

Binary Format

MIME Type: application/octet-stream

ID: binary

The Binary data format handles binary content, such as an image or PDF. Such content is represented as a Binary type.

Note that Binary content is stored into RAM memory.

Configuration Properties

DataWeave supports the following configuration properties for this format.

Reader Properties

There are no reader properties for Binary data.

Writer Properties

The Binary format accepts properties that provide instructions for writing output data.

Parameter Type Default Description

bufferSize

Number

8192

Size of the writer buffer.

deferred

Boolean

false

When set to true, DataWeave generates the output as a data stream, and the script’s execution is deferred until it is consumed. Valid values are true or false.

Supported MIME Types

The Binary format supports the following MIME types.

MIME Type

application/octet-stream

application/x-binary