how resume able file download in asp.net with c# -> best way (for large files too)

前端 未结 4 2186
遥遥无期
遥遥无期 2020-12-09 14:01

see the below handler :

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FileExplorer
{
    /// 

        
4条回答
  •  生来不讨喜
    2020-12-09 14:44

    If you can consider using ASP.NET Web API, take a look at my post ASP.NET Web API file download service with resume support

    It provides a solution using two different approaches: FileStream class and memory mapped files (this may offer some performance benefits).

提交回复
热议问题