HOW TO download files programmatically using ASP.NET
There are 5 choices:
"..use TransmitFile .. if you plan on serving a file more than once. TransmitFile is very efficient because it basically offloads the file streaming to IIS including potentially causing the file to get cached in the Kernal cache (based on IIS's caching rules)."
- Direct Access
- Response.WriteFile
- Response.BinaryWrite and Response.OutputStream.Write
- ISAPI Filters
- Response.TransmitFile (new in ASP.NET 2.0)
"..use TransmitFile .. if you plan on serving a file more than once. TransmitFile is very efficient because it basically offloads the file streaming to IIS including potentially causing the file to get cached in the Kernal cache (based on IIS's caching rules)."
Comments
Post a Comment