Ignore what I said about the cfc, I thought you were using itext So, maybe try this: <cfset newResult = ToString(myResult, "ISO-8859-1")><!---not sure if this will work with a byte[]---> <cfcontent type="application/pdf; charset=ISO-8859-1"><cfheader name="Content-Disposition" value="filename=test.pdf"><CFSCRIPT>writeOutput(myResult);</cfscript>
If the ToString doesn't work, you'll need to use java, something using java.io.ByteArrayOutputStream. Let me know first before I have to think :) -----Original Message----- From: sonicDivx [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 11:41 AM To: CF-Talk Subject: Re: Create CF web service to return a PDF file Seth and Rick, Thanks for the replies, the save to file then read I figured would work, and I may do that. Seth, I'll give you way a try, but could you elaborate a little on the CFC. I think I'm mentally missing something. Thanks On 6/14/06, Rick Root <[EMAIL PROTECTED]> wrote: > Don't know if this will work for you, but here's what our web service does: > > - creates the PDF, saves it to the file system > - returns a URL to a cfm page that delivers the PDF using CFCONTENT, > which also deletes the PDF. > > rick > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243478 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

