With a little side of applesauce...

Friday, October 31, 2008

coldfusion - base64 conversion back to string

Converting base64-encoded text is not as simple as you would think... You have to convert it a byte array using ToBinary() before converting back to a string:
<cfset queryString = ToString( ToBinary( CGI.QUERY_STRING ) )>

The answer is here.

No comments: