Seb, It is most likely that CF will open the file you are delivering, however, it will probably be more in a streaming fashion, aka, it will probably not all be loaded into active memory.
I just did it with a 200MB file, the memory went up about 6MB and now has dropped down 12MB. I would say it's safe. It literally streams it from disk to network and to local disk without any one application loading 200MB of data. I used CF7 and Firefox 3. nathan strutz [Blog and Family @ http://www.dopefly.com/] [AZCFUG Manager @ http://www.azcfug.org/] On Fri, Feb 6, 2009 at 4:49 AM, Seb Duggan <s...@sebduggan.com> wrote: > > I'm putting together a page on one of my sites for downloading of hi- > res press images. > > These are JPEGs; but I want them to be downloaded rather than opened > in the browser. > > The following code works just fine: > > <cfheader name="Content-Disposition" value="attachment; filename=press- > image.jpg" /> > <cfcontent type="image/jpeg" file="#ExpandPath("press-image.jpg")#" /> > > What I want to know is: if I'm serving the file in this method, does > CF load the image into memory and then serve it? Or does it just point > the browser to the relevant location? > > The reason I ask is that some of the images are up to 10MB in size, > and I don't want my CF server to be hammered by someone downloading a > few of these at the same time. > > The alternative is to zip them all up - very little size gain for > JPEGs, but at least the browser will just download the file, and IIS > will take the strain instead of CF... > > > > Seb Duggan > Web & ColdFusion Developer > > e: s...@sebduggan.com > t: 07786 333184 > w: http://sebduggan.com > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318999 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4