On 2/9/07, Torrent Girl <[EMAIL PROTECTED]> wrote: > 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>
Shoot, I wish I would've seen this thread earlier, I do almost that exact code in CFOpenMail, since imap.cfc returns attachments as ByteArrays, and if you don't want to write a temp file, that's the only way to do it. Rick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:269303 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4