Here is what I used
cfscript
context = getPageContext();
context.setFlushOutput(false);
response = context.getResponse().getResponse();
out = response.getOutputStream();
response.setContentType(application/pdf);
response.setContentLength(arrayLen(#docLite2#));
out.write(#docLite2#);
out.flush();
out.close();
/cfscript
Is there more to their example? This line doesn't make much
sense(again the special characters, and where is webserivce defined
mPdf = webserivce.getPolicyDocument(ââ¬Â¦);
Can you send this to them, maybe they can help you out with the rest?
cfsilent
cfscript
mPdf = createObject(java, java.io.ByteArrayOutputStream).
init();
mPdf = webserivce.getPolicyDocument(ââ¬Â¦);
MyVariable = mPdf.toString(ISO-8859-1);
/cfscript
/cfsilent
cfcontent type=application/pdf; charset=ISO-8859-1
cfheader name=Content-Disposition value=filename=RM.pdf
-Original Message-
From: Torrent Girl [mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] ]
Sent: Thursday, February 08, 2007 1:08 PM
To: CF-Talk
Subject: Re: binary to PDF
yes it is with an outside vendor.
they are sending me the contents of a PDF in an array of bytes
this code sample was how they do it with java
resp.setHeader(Content-Disposition, filename=RM.pdf);
resp.setContentType(application/pdf);
byte[] mPdf = webserivce.getPolicyDocument(ââ¬Â¦); // This is what you
are getting
ServletOutputStream out = resp.getOutputStream();
out.write(mPdf);
out.close();
= =
Please access the attached hyperlink for an important electronic
communications disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
= =
~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 MX7 integration create powerful cross-platform RIAs
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269302
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4