I believe you need to use the toString() function. Best Regards,
Gil Barden -----Original Message----- From: Artecom Support [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 3:47 AM To: CF-Server Subject: Base 64 Hi, I need to store images in my database. so, I use the toBase64 function an s it works great ! But to 'recover' the original file, i have a little problem : I wrote a little piece of code : <cfsetting enablecfoutputonly="yes"> <cfcontent type="image/jpeg"> <cfquery datasource="test" name="query">SELECT bla bla</cfquery> <cfoutput>#toBinary(query.Base64Image)#</cfoutput> But i get an error : "Expression result cannot be converted to a string", I see why but i don't know how else to do that, and in the help of the ToBinary function (cfstudio 4.5) They explain : "If you receive data in Base64, you can re-create the actual binary object that it represents, su ch as a .gif, .jpeg, or executable file, by using the ToBinary function" but they don't explain how ! So... can anybody help me ? Thanks a lot and excuse for the (not so ?) bad english J�r�me ______________________________________________________________________ Macromedia ColdFusion 5 Training from the Source Step by Step ColdFusion http://www.amazon.com/exec/obidos/ASIN/0201758474/houseoffusion ------------------------------------------------------------------------------ To unsubscribe, send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body or visit the list page at www.houseoffusion.com
