Several articles have been written about the options for creating a site that efficiently handles streaming large files down to users (e.g. WriteFile (No!), TransmitFile, FileStream chunking, ISAPI Filter), but most of these are in the context before ASP.NET
2.0. I am about to write an application that needs solid support for this and am wondering if ASP.NET 2.0 brings anything new to the table. Does anyone have any insight into this issue or ideas how ASP.NET 2.0 could improve my life?
Thanks guys, I've read the description for TransmitFile but I've heard reports of inconsistency and still having occasional performance problems if you are downloading many large files. Downloading large files is a cornerstone of the product I'm working
on - many people are always doing it, and at the same time. As such, I want to make sure I have a solid architecture in place. Most of the issues I've heard about with TransmitFile were before ASP 2.0 so I'm wondering if 2.0 fixes them.
I'd also like the download to be resumable if it is interrupted.
A few of the articles that make me nervous about TransmitFile
That link doesn't provide much detail for the TransmitFile method.. do you happen to have more information on this?
Also, what can be used for the upload of large file ?
Thanks
Try these links for sample code from the Asp.net team and how Response.TransmitFile is using the Asp.net worker process account. My understanding the class is the new way to upload large files. Hope this helps.
Boz
Member
10 Points
2 Posts
ASP.NET 2.0 architecture for large file streaming to client
Sep 21, 2005 09:49 PM|LINK
Several articles have been written about the options for creating a site that efficiently handles streaming large files down to users (e.g. WriteFile (No!), TransmitFile, FileStream chunking, ISAPI Filter), but most of these are in the context before ASP.NET 2.0. I am about to write an application that needs solid support for this and am wondering if ASP.NET 2.0 brings anything new to the table. Does anyone have any insight into this issue or ideas how ASP.NET 2.0 could improve my life?
Thanks in advance!
David
smiling4ever
All-Star
15531 Points
3063 Posts
Re: ASP.NET 2.0 architecture for large file streaming to client
Sep 27, 2005 12:10 AM|LINK
I'm using TransmitFile and it is working fine for large files. What you need from ASP.NET 2.0 then?
regards
Caddre
All-Star
26581 Points
5308 Posts
Re: ASP.NET 2.0 architecture for large file streaming to client
Sep 27, 2005 05:08 AM|LINK
http://msdn2.microsoft.com/en-us/library/12s31dhy
Gift Peddie
Boz
Member
10 Points
2 Posts
Re: ASP.NET 2.0 architecture for large file streaming to client
Sep 29, 2005 05:46 PM|LINK
Thanks guys, I've read the description for TransmitFile but I've heard reports of inconsistency and still having occasional performance problems if you are downloading many large files. Downloading large files is a cornerstone of the product I'm working on - many people are always doing it, and at the same time. As such, I want to make sure I have a solid architecture in place. Most of the issues I've heard about with TransmitFile were before ASP 2.0 so I'm wondering if 2.0 fixes them.
I'd also like the download to be resumable if it is interrupted.
A few of the articles that make me nervous about TransmitFile
http://forums.asp.net/1057815/ShowPost.aspx
http://www.devx.com/dotnet/Article/22533
http://objectsharp.com/Blogs/bruce/articles/1571.aspx
Any other thoughts?
Thanks!
Boz
martinbl
Participant
1700 Points
355 Posts
Re: ASP.NET 2.0 architecture for large file streaming to client
Oct 11, 2005 08:45 PM|LINK
That link doesn't provide much detail for the TransmitFile method.. do you happen to have more information on this?
Also, what can be used for the upload of large file ?
Thanks
martinbl
Participant
1700 Points
355 Posts
Re: ASP.NET 2.0 architecture for large file streaming to client
Oct 11, 2005 08:55 PM|LINK
In the HttpModule, you could validate credential previously submitted and control the access to the requested file..
Just a thought!
Caddre
All-Star
26581 Points
5308 Posts
Re: ASP.NET 2.0 architecture for large file streaming to client
Oct 12, 2005 08:53 PM|LINK
Try these links for sample code from the Asp.net team and how Response.TransmitFile is using the Asp.net worker process account. My understanding the class is the new way to upload large files. Hope this helps.
http://forums.asp.net/1050856/ShowPost.aspx
http://west-wind.com/weblog/posts/1573.aspx
Gift Peddie
martinbl
Participant
1700 Points
355 Posts
Re: ASP.NET 2.0 architecture for large file streaming to client
Oct 13, 2005 01:05 PM|LINK