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

## [](#frombase641)fromBase64(base64String: 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.6/dw-binaries-functions-tobase64#toBase64-example)​ で画像から生成された Base64 文字列が ​`payload`​ に含まれていることを前提としています。 この関数の出力は、例 [toBase64](https://docs.mulesoft.com/dataweave/latest/dw-binaries-functions-tobase64)​ で生成された画像を表すバイナリ値です。

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

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