Try the toBase64(binaryvar) function built in to CF...  You should then be
able to output the XML file as a string.

Jeff Garza
Lead Developer/Webmaster
Spectrum Astro, Inc.
480.892.8200
[EMAIL PROTECTED]
http://www.spectrumastro.com



-----Original Message-----
From: Steven Salter [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 20, 2002 2:12 PM
To: CF-Talk
Subject: Cold Fusion code to decode binary base64 attachment


Greetings,

I am running CF4.5 on Redhat 6.x. I have subscribed to the USPS Electronic
Return service. When I shoot them an xml string I get back a response that
is supposed to be the return mailing label in pdf format. The response comes
back as binary that I will need to decode as base64 in order to view the
label.

Anyone have code or a custom tag that will decode the base64 binary?
Preferably, I want to just display it on the web page (cfcontent?), and not
write it to disk but anything that works would be wonderful.

Thanks,
Steve


______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to