---
schema_version: "1"
id: 6842210f57ae64da2eb4efa04c36dfcbc2e839f5808294ead1d7143a69ea83d2
title: Binaries (dw::core::Binaries)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/latest/dw-binaries.md
canonical_url: https://docs.mulesoft.com/dataweave/latest/dw-binaries
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 0577697e65cadc66ccba239e89d498724954f3a2893351e3325eaf1ffe771bc5
description: MuleSoft Documentation Site
release: "2.13"
latest: true
---
---
product: DataWeave
version: 2.13
is-latest-version: true
---

# Binaries (dw::core::Binaries)

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

This module contains helper functions for working with binaries.

To use this module, you must import it to your DataWeave code, for example, by adding the line
`import * from dw::core::Binaries` to the header of your DataWeave script.

## Functions

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><a href="https://docs.mulesoft.com/dataweave/latest/dw-binaries-functions-concatwith">concatWith</a></p></td><td><p>Concatenates the content of two binaries.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/latest/dw-binaries-functions-frombase64">fromBase64</a></p></td><td><p>Transforms a Base64 string into a binary value.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/latest/dw-binaries-functions-fromhex">fromHex</a></p></td><td><p>Transforms a hexadecimal string into a binary.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/latest/dw-binaries-functions-readlineswith">readLinesWith</a></p></td><td><p>Splits the specified binary content into lines and returns the results in an array.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/latest/dw-binaries-functions-tobase64">toBase64</a></p></td><td><p>Transforms a binary value into a Base64 string.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/latest/dw-binaries-functions-tohex">toHex</a></p></td><td><p>Transforms a binary value into a hexadecimal string.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/latest/dw-binaries-functions-writelineswith">writeLinesWith</a></p></td><td><p>Writes the specified lines and returns the binary content.</p></td></tr></tbody></table>
