---
schema_version: "1"
id: 6f00c0fbc3f097dc0c91ac337d3a24ba3c1fa4d3d2fcb61d60e282d97ee7d406
title: fromBase64
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.3/dw-binaries-functions-frombase64.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.3/dw-binaries-functions-frombase64
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 6381308c1c09abe07f6a6eab5147e9e0916110fb42ea2c433313bc255cb74485
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
# fromBase64

## [](#frombase641)fromBase64(String): Binary

Base64 文字列をバイナリ値に変換します。

### [](#パラメーター)パラメーター

<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">​<code>base64String</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">変換する Base64 文字列。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、Base64 でエンコードされた文字列を入力してバイナリ値に変換します。次の例では、例 ​[toBase64](https://docs.mulesoft.com/jp/dataweave/2.3/dw-binaries-functions-tobase64#toBase64-example)​ で画像から生成された Base64 文字列が ​`payload`​ に含まれていることを前提としています。

#### [](#ソース)ソース

```DataWeave
%dw 2.0

import fromBase64 from dw::core::Binaries
output application/octet-stream
---
fromBase64(payload)
```

#### [](#出力)出力

この関数の出力は、例 ​[toBase64](https://docs.mulesoft.com/jp/dataweave/2.3/dw-binaries-functions-tobase64#toBase64-example)​ で生成された画像を表すバイナリ値です。