---
schema_version: "1"
id: eda278b0787672973758fa0bb11ce854aeae844b56ba3d43dcc12e167fc0ce3c
title: Binaries (dw::core::Binaries)
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.4/dw-binaries.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.4/dw-binaries
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 0360833c842b5d6966249f67a07a9d550dd2c713b3cf132b1824622535b707d7
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
# Binaries (dw::core::Binaries)

このモジュールには、バイナリを処理するためのヘルパー関数が含まれます。

このモジュールを使用するには、DataWeave コードにインポートする必要があります。その方法として、たとえば、行 ​`import * from dw::core::Binaries`​ を DataWeave スクリプトの ヘッダーに追加します。

## [](#関数)関数

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<a href="https://docs.mulesoft.com/jp/dataweave/2.4/dw-binaries-functions-frombase64" class="xref page">fromBase64</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Base64 文字列をバイナリ値に変換します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<a href="https://docs.mulesoft.com/jp/dataweave/2.4/dw-binaries-functions-fromhex" class="xref page">fromHex</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">16 進文字列をバイナリに変換します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<a href="https://docs.mulesoft.com/jp/dataweave/2.4/dw-binaries-functions-readlineswith" class="xref page">readLinesWith</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">指定されたバイナリコンテンツを複数の行に分割し、結果を配列で返します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<a href="https://docs.mulesoft.com/jp/dataweave/2.4/dw-binaries-functions-tobase64" class="xref page">toBase64</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">バイナリ値を Base64 文字列に変換します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<a href="https://docs.mulesoft.com/jp/dataweave/2.4/dw-binaries-functions-tohex" class="xref page">toHex</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">バイナリ値を 16 進文字列に変換します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<a href="https://docs.mulesoft.com/jp/dataweave/2.4/dw-binaries-functions-writelineswith" class="xref page">writeLinesWith</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">指定された行を書き込んで、バイナリコンテンツを返します。</p></td>
</tr>
</tbody>
</table>