---
schema_version: "1"
id: f9d8f6e8e90fa3f9fdf9b8023979b32ffff70d7e576e2060b5a9eafa2b7df9be
title: Binaries (dw::core::Binaries)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.9/dw-binaries.md
canonical_url: https://docs.mulesoft.com/dataweave/2.9/dw-binaries
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 7767d4a49b6d666417ecdf044c7055e8bb4035652cf26774b7f52a952d8447aa
description: MuleSoft Documentation Site
release: "2.9"
latest: false
---
---
product: DataWeave
version: 2.9
---

# 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/2.9/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/2.9/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/2.9/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/2.9/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/2.9/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/2.9/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/2.9/dw-binaries-functions-writelineswith">writeLinesWith</a></p></td><td><p>Writes the specified lines and returns the binary content.</p></td></tr></tbody></table>
