User Guide

ToBinary 887
<!--- Convert string to binary. ---->
<cfset binaryData = toBinary(data64)>
<!--- Convert binary back to Base64. --->
<cfset another64 = toBase64(binaryData)>
<!---- Compare another64 with data64 to ensure that they are equal. ---->
<cfif another64 eq data64>
<h3>Base64 representation of binary data is identical to the Base64
representation of string data.</h3>
<cfelse>
<h3>Conversion error.</h3>
</cfif>