---
schema_version: "1"
id: 725cd245e59ee079af6a21f992cd7371bec6ffdef48bf7b5a7017cdaec7c17e9
title: concatWith
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.6/dw-binaries-functions-concatwith.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.6/dw-binaries-functions-concatwith
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 38a2a57f9a34399df4959ec911f7a8e1dc05dd2eeb32c93c4892b199a2e4d8d0
description: MuleSoft Documentation Site
release: "2.6"
latest: false
---
# concatWith

## [](#concatwith1)concatWith(source: Binary, with: Binary): Binary

2 つのバイナリのコンテンツを連結します。

_DataWeave バージョン 2.5.0 で導入されました。_

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

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 20%;">
<col style="width: 20%;">
<col style="width: 60%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<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>source</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Binary (バイナリ)</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"><code>with</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Binary (バイナリ)</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">追加するバイナリ。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

この例では、2 つのバイナリを 1 つのバイナリに連結します。

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

```DataWeave
%dw 2.0
import * from dw::core::Binaries
output application/dw
---
"CAFE" as Binary {base: "16"} concatWith "ABCD" as Binary {base: "16"}
```

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

```Json
"yv6rzQ==" as Binary {base: "64"}
```

## [](#concatwith2)concatWith(source: Binary, with: Null): Binary

`concatWith`​ を ​`null`​ 値に使用できるようにするヘルパー関数。

## [](#concatwith3)concatWith(source: Null, with: Binary): Binary

`concatWith`​ を ​`null`​ 値に使用できるようにするヘルパー関数。