Need Help
-
I'm trying to use Response.TransmitFile in ASP.NET 2.0 instead of reading and writing chunks to a buffer for large files. The questions I want to ask are: 1. Does anyone know how efficient Response.TransmitFile is? I can see that it doesn't add up the memory usage to IIS at all, but I'm not sure the impact on the server itself compared with reading and writing to a buffer in chunks. 2. What about security? by using Response.TransmitFile Thanks,
-
I'm trying to use Response.TransmitFile in ASP.NET 2.0 instead of reading and writing chunks to a buffer for large files. The questions I want to ask are: 1. Does anyone know how efficient Response.TransmitFile is? I can see that it doesn't add up the memory usage to IIS at all, but I'm not sure the impact on the server itself compared with reading and writing to a buffer in chunks. 2. What about security? by using Response.TransmitFile Thanks,
-
I'm trying to use Response.TransmitFile in ASP.NET 2.0 instead of reading and writing chunks to a buffer for large files. The questions I want to ask are: 1. Does anyone know how efficient Response.TransmitFile is? I can see that it doesn't add up the memory usage to IIS at all, but I'm not sure the impact on the server itself compared with reading and writing to a buffer in chunks. 2. What about security? by using Response.TransmitFile Thanks,
amarnath n.n wrote:
1. Does anyone know how efficient Response.TransmitFile is? I can see that it doesn't add up the memory usage to IIS at all, but I'm not sure the impact on the server itself compared with reading and writing to a buffer in chunks.
AFAIK, Response.TransmitFile directly writes the file in the Response stream, which is similar to reading and writing chunks to a buffer. It flushes the buffer once the file is written to the output stream.
amarnath n.n wrote:
2. What about security? by using Response.TransmitFile
There is no relation of Security with this. Its actually reading the file from a specified physical location of the server and writes the file directly to the stream. If asp.net user has permission to that folder, it can transmit the file properly. :cool::rose:
Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.
-
I'm trying to use Response.TransmitFile in ASP.NET 2.0 instead of reading and writing chunks to a buffer for large files. The questions I want to ask are: 1. Does anyone know how efficient Response.TransmitFile is? I can see that it doesn't add up the memory usage to IIS at all, but I'm not sure the impact on the server itself compared with reading and writing to a buffer in chunks. 2. What about security? by using Response.TransmitFile Thanks,
I never had to use
Response.TransmitFile
. IMO, simple method to transmit files is to redirect to the file name. Rest all will be automatically taken care.Navaneeth How to use google | Ask smart questions
-
I never had to use
Response.TransmitFile
. IMO, simple method to transmit files is to redirect to the file name. Rest all will be automatically taken care.Navaneeth How to use google | Ask smart questions