I just tried that and no luck. It seems the returned result from the service is a ByteArray. This is what I tried in CFC
<cfset myResult = BinaryEncode(myResult,'Base64') > On 6/14/06, James Holmes <[EMAIL PROTECTED]> wrote: > Did you convert the Binary to base64 before returning it? > > On 6/14/06, sonicDivx <[EMAIL PROTECTED]> wrote: > > I am trying to determine if I can create a web service that generates > > a PDF document. Then call the web service to return the PDF. > > > > Here is the basic web service I wrote > > > > <cfcomponent displayname="printpdf"> > > <cffunction name="printme" returntype="binary" access="remote" > > output="no"> > > <cfargument name="myArgument" type="string" required="yes"> > > <cfdocument format="pdf" name="myResult"> > > test > > </cfdocument> > > <cfreturn myResult> > > </cffunction> > > </cfcomponent> > > > > On the calling page I just do a basic cfinvoke. The data returned is > > binary, but not sure how to get it to render as a PDF. I've tried > > <cfcontent type="application/pdf"> and nothing happens renders. > > -- > CFAJAX docs and other useful articles: > http://jr-holmes.coldfusionjournal.com/ > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243452 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

