---
schema_version: "1"
id: 6ae041857c6504fb189e2aca53743a41842b172037d05fb8417346b7cc2cce27
title: fromBase64
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.4/dw-binaries-functions-frombase64.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.4/dw-binaries-functions-frombase64
source_site: docs.mulesoft.com
content_type: documentation
content_hash: d28194bd77af29eb6a1b20d425de1f22110a39fab49b44ebfc42a908220eeb28
description: MuleSoft Documentation Site
release: "2.4"
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.4/dw-binaries-functions-tobase64#toBase64-example)​ で画像から生成された Base64 文字列が ​`payload`​ に含まれていることを前提としています。

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

```DataWeave
%dw 2.0

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