You should be able to turn base64 in to binary data using the tobinary()
function.

Once you've done that, you'll need to save the result to disk and either
server the image using an <img> tag, or using cfcontent.

Spike

Stephen Milligan
Team Macromedia - ColdFusion
Co-author 'Reality Macromedia ColdFusion MX: Intranets and Content
Management'
http://spikefu.blogspot.com

> -----Original Message-----
> From: Douglas McKenzie [mailto:[EMAIL PROTECTED]] 
> Sent: 20 November 2002 17:09
> To: CF-Dev
> Subject: [ cf-dev ] decrypting a base64 encoded image
> 
> 
> Hi,
> 
> I've got an XML document which gets sent to the server with a 
> load of info in. One of the fields is an image field which 
> contains the base64 encoded version of the image.
> 
> My question is how do you convert that information back into an image?
> 
> I've been trying out the toString and toBinary functions but 
> none are working. Or should I be looking at content-header types?
> 
> Trying this with CFMX.
> 
> Any help would be much appreciated as I've run out of ideas.
> 
> Cheers,
> Douglas McKenzie
> 
> ----------------------------------------
> Internet Developer / Designer
> [EMAIL PROTECTED]
> 07984 462 516
> ----------------------------------------
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] For human help, e-mail: 
> [EMAIL PROTECTED]
> 
> 
> 


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to