Thank you but now, i have another error :
"This object cannot be converted to a string (it contains null characters)."

What to do ?
Thanks !

J�r�me

----- Original Message -----
From: "Gil Barden" <[EMAIL PROTECTED]>
To: "CF-Server" <[EMAIL PROTECTED]>
Sent: Friday, March 08, 2002 6:34 PM
Subject: RE: Base 64


> 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
>
> 
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to