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

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