ToBase64 (string or binary_object [, encoding]) DescriptionCalculates the Base64 representation of a string or binary object. The Base64 format uses printable characters, allowing binary data to be sent in forms and email and stored in a database or file. Encodings include US-ASCII, ISO-8859-1, UTF-8, and UTF-16. <cffile action="READBINARY" file="D:\CFusionMX\wwwroot\testbinary.jpg" variable="exampleBin"> <cfoutput> My Picture in Base64 representation: #ToBase64(exampleBin)# </cfoutput> |