how can i stream files like IIS? all the asp.net examples i have seen grabs the file, stores it in memory and then streams it to the browser. this works fine for smaller files but if the file is large, it takes lot of time to read the file into memory. IIS
works differently. lets say you click on a link to download a large file. ex: http://myDomainName.com/MyLargeFile.zip even if the file is 300mb, you will quickly see a download window popup on your browser asking you where to save the file. IIS will start
streaming you the file as soon as you click the link. how can i duplicate this using code?
By default, buffering is turned on so that pages try to download in one chunk when completed. You can turn this off or output sections with Response.Flush to make it start downloading sooner.
renjitk
Member
255 Points
54 Posts
how can i stream files like IIS?
Nov 23, 2003 02:07 PM|LINK
intesoft
Member
561 Points
114 Posts
Re: how can i stream files like IIS?
Nov 23, 2003 04:45 PM|LINK
ASPAccelerator.NET - Fewer bytes, faster pages
ASPRedirector.NET - Put friendly URLs on your site