Contact Free trial Login

fromBase64

fromBase64(String): Binary

Transforms a Base64 string into a binary value.

Parameters

Name Description

base64String

The Base64 string to transform.

Example

This example takes a Base64 string and transforms it into a binary.

Source

%dw 2.0
import * from dw::core::Binaries
output application/json
---
{ "BinaryFromBase64" : fromBase64("TXVsZQ==") }

Output

{ "BinaryFromBase64": "Mule" }

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub