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
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com