Page view counter

ASP.NET 2.0 architecture for large file streaming to client

Last post 10-13-2005 9:05 AM by martinbl. 7 replies.

Sort Posts:

  • ASP.NET 2.0 architecture for large file streaming to client

    09-21-2005, 5:49 PM
    • Loading...
    • Boz
    • Joined on 09-21-2005, 9:39 PM
    • Posts 2
    • Points 10

    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

  • Re: ASP.NET 2.0 architecture for large file streaming to client

    09-26-2005, 8:10 PM
    Hello,

    I'm using TransmitFile  and it is working fine for large files. What you need from ASP.NET 2.0 then?


    regards
  • Re: ASP.NET 2.0 architecture for large file streaming to client

    09-27-2005, 1:08 AM
    • Loading...
    • Caddre
    • Joined on 06-23-2003, 9:53 AM
    • Indy
    • Posts 5,308
    • Points 26,551
    Try the link below for FCL (framework class library) 2.0 on TransmitFile.  Hope this helps.

    http://msdn2.microsoft.com/en-us/library/12s31dhy
    Kind regards,
    Gift Peddie
  • Re: ASP.NET 2.0 architecture for large file streaming to client

    09-29-2005, 1:46 PM
    • Loading...
    • Boz
    • Joined on 09-21-2005, 9:39 PM
    • Posts 2
    • Points 10

    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

  • Re: ASP.NET 2.0 architecture for large file streaming to client

    10-11-2005, 4:45 PM
    • Loading...
    • martinbl
    • Joined on 07-29-2005, 11:16 AM
    • North America
    • Posts 355
    • Points 1,700
     Caddre wrote:
    Try the link below for FCL (framework class library) 2.0 on TransmitFile.  Hope this helps.

    http://msdn2.microsoft.com/en-us/library/12s31dhy


    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
    Martin Bittner, MCP
  • Re: ASP.NET 2.0 architecture for large file streaming to client

    10-11-2005, 4:55 PM
    • Loading...
    • martinbl
    • Joined on 07-29-2005, 11:16 AM
    • North America
    • Posts 355
    • Points 1,700
    What about using the direct access method ... and an HttpModule to control access to the file so not the whole world have access to it ?

    In the HttpModule, you could validate credential previously submitted and control the access to the requested file..


    Just a thought!
    Martin Bittner, MCP
  • Re: ASP.NET 2.0 architecture for large file streaming to client

    10-12-2005, 4:53 PM
    • Loading...
    • Caddre
    • Joined on 06-23-2003, 9:53 AM
    • Indy
    • Posts 5,308
    • Points 26,551
     martinbl wrote:
     Caddre wrote:
    Try the link below for FCL (framework class library) 2.0 on TransmitFile.  Hope this helps.

    http://msdn2.microsoft.com/en-us/library/12s31dhy


    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.

    http://forums.asp.net/1050856/ShowPost.aspx
    http://west-wind.com/weblog/posts/1573.aspx

    Kind regards,
    Gift Peddie
  • Re: ASP.NET 2.0 architecture for large file streaming to client

    10-13-2005, 9:05 AM
    • Loading...
    • martinbl
    • Joined on 07-29-2005, 11:16 AM
    • North America
    • Posts 355
    • Points 1,700
    Thanks, I'll be looking at those two links today !

    Martin Bittner, MCP
Page 1 of 1 (8 items)