Name
ToString — New as of ColdFusion 4.5
Synopsis
ToString( )
Converts any datatype, including binary, to a string. If
value
can’t be converted, an
exception is thrown. Example:
<CFSET MyString="Have a nice day!"> <CFSET Base64String = ToBase64(MyString)> <CFSET BinaryString = ToBinary(Base64String)> <CFSET BackToString = ToString(BinaryString)> <CFOUTPUT> MyString: #MyString#<BR> Base64String: #Base64String#<BR> BackToString: #BackToString#<BR> </CFOUTPUT>
Get Programming ColdFusion now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.