There are two steps required. Check your ColdFusion help on ToBase64 and ToBinary. The CF5 help is not the best, but I quote: "To reverse the base64 encoding of a string, you must convert it into a binary object, and then convert the binary object into a string using ToString. " We do this where I work, but I do not have the code handy or I would give an example. You're on the right track; I just think you're missing a step. - Chuck
-----Original Message----- From: Steven Salter [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 11:47 AM To: CF-Talk Subject: how to show a pdf? Hi, I receive a base64 encoded binary (pdf format) from the USPS Electronic Return system and need to display this pdf "mail return label" to my customer. Following advice here, I used tostring() to convert the binary into a string and have tried to write it to a file and then display the file, I've tried using <cfcontent> as well. Regardless of what I do, all I see is the converted string. This is already in pdf format, I just need to convert the base64 binary to a format that I can display. I don't need to write the file necessarily, unless I have to, to accomplish this. I've beat my head against the wall for about two days now and I can't figure this out. NOTE: my system is running CF 4.5 on RedHat linux 6.x. Thanks, Steve ______________________________________________________________________ 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=coldfusiona 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

