---
schema_version: "1"
id: 4e8f4d2532ed4ba12b52c4ffe30cebda81d1d18c5ea69b078e4e06553b946896
title: Binary Format
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.9/dataweave-formats-binary.md
canonical_url: https://docs.mulesoft.com/dataweave/2.9/dataweave-formats-binary
source_site: docs.mulesoft.com
content_type: documentation
content_hash: d414b8365f93fb85cbd37e13bdad8833519247426f6a49d3a4c89885c501dfb0
description: MuleSoft Documentation Site
release: "2.9"
latest: false
---
---
product: DataWeave
version: 2.9
keywords: format, binary, application/octet-stream, application/x-binary, application/octet-stream
---

# Binary Format

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

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 this format.

### Writer Properties

This format accepts properties that provide instructions for writing output data.

<table><colgroup><col> <col> <col> <col></colgroup><thead><tr><th>Parameter</th><th>Type</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td><p><code>bufferSize</code></p></td><td><p><code>Number</code></p></td><td><p><code>8192</code></p></td><td><div><div><p>Size of the buffer writer, in bytes. The value must be greater than <code>8</code>.</p></div></div></td></tr><tr><td><p><code>deferred</code></p></td><td><p><code>Boolean</code></p></td><td><p><code>false</code></p></td><td><div><div><p>Generates the output as a data stream when set to <code>true</code>, and defers the script’s execution until the generated content is consumed.</p></div><div><p>Valid values are <code>true</code> or <code>false</code>.</p></div></div></td></tr></tbody></table>

## Supported MIME Types

This format supports the following MIME types.

<table><colgroup><col></colgroup><thead><tr><th>MIME Type</th></tr></thead><tbody><tr><td><p><code>application/octet-stream</code></p></td></tr><tr><td><p><code>application/x-binary</code></p></td></tr></tbody></table>
