Reputation:
I want to allow users to download a large file - around 4GB. I'd like them to have the ability to resume failed downloads.
Can anyone make any recommendations on the best way to do this? Or are there any off the shelf components out there that ppl have had success with?
I'm using IIS7 to host the app.
I've seen a few approaches out there, but they're all quite old.
Cheers, David.
Upvotes: 1
Views: 1243
Reputation: 45117
You could have your uses utilize a download manager like the MS File Transfer Manager or Free Download Manager or you could roll your own.
Upvotes: 2
Reputation: 971
Take a look at my post ASP.NET Web API file download service with resume support
It shows how to implement file download service in Web API that supports pause/resume. You can pick one of two approaches presented there - either a FileStream wrapper or memory-mapped files (this one will work only your app can run as 64bit). Both should support arbitrarily large files.
Using Web API gives you additional benefit of being able to host the service in windows service or 'normal' .net applicaiton.
Upvotes: 1