Skip to main content

Encode MIME Base64

XML
<encode:base64 var="var">
string
</encode:base64>

<encode:base64 /> encodes a value according to RFC 2045 using a 65-character printable subset of US-ASCII to represent arbitrary byte sequences.

MIME Base64 is designed to make binary data survive transport through transport layers that are not 8-bit clean. MIME Base64-encoded data is about 33 percent larger than the unencoded data.

<encode:base64 /> is the complement of the <decode:base64 /> operation.

Attributes

NameTypeDescriptionDefined By
varvarResult variable name encode:base64

Results

BindingTypePredicate
varstringN/A

Examples

XML
<output>
<encode:base64>My name is iXML!</encode:base64>
</output>

<!-- TXkgbmFtZSBpcyBpWE1MIQ== -->