Whatever message this page gives is out now! Go check it out!
ToBinary(Data)Parameter | Description |
Data | A variable representing data in Base64-encoded format or a PDF document. |
<cfpdf action="read" source="Copy of coldfusion11.pdf" name="p">
<cfpdf action="protect" source="p" newUserpassword="user" permissions="none"
newOwnerpassword="owner">
<cfcontent type="application/pdf" variable="#tobinary(p)#"><cfscript>
strValue = "Sgt. Pepper's Lonely Hearts Club Band"
strBase64Value = ToBase64(strValue)
strNewValue = ToString(ToBinary(strBase64Value))
writeOutput("Base 64 is: " & strBase64Value & "<br/>") // U2d0LiBQZXBwZXIncyBMb25lbHkgSGVhcnRzIENsdWIgQmFuZA==
writeOutput("Binary value is: " & strNewValue) // Sgt. Pepper's Lonely Hearts Club Band
</cfscript>