On Tue, Apr 1, 2008 at 5:18 PM, kurt schroeder <[EMAIL PROTECTED]> wrote: > I need to out put an excel file with charts to the user when she clicks on a > link. > My method for this will be to oout put a byte array after i read the file > "Binary" > However, I have no idea how to just write the byte array out!!! There and > may examples of writting to file, but i need to write to screen. I have done > this in asp.net.
This is what I [basically] use: <cfheader name="Content-Disposition" value="attachment;filename=your.xls" charset="windows-1252"> <cfcontent type="application/xls"><cfoutput>#toString(yourByteArrayOutputStream)#</cfoutput> The "attachment;" token in cfheader tells the browser to download it vs. open it inline. Screw saving it to disk if you've already got it in memory! |] HIH, Denny ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302469 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

