I have made a C# implementation of this code which you can download from http://www.velodoc.com/downloads/061122.blog.zip.
To use this code, you need to:
- Create a C# class library named “Memba.FileDownload” or whatever name you deem more appropriate and add the two class files from the archive.
- Create a web site and add the following to the system.web/httpHandlers section of the web.config:
<add type="Memba.FileDownload.DownloadHandler, Memba.FileDownload" validate="false" path="*.zip" verb="*"/>
- You also need to make sure the zip extension is mapped to the aspnet_isapi.dll in the IIS management snap-in otherwise your handler will not be called.
To test this code, download a zip file hosted on the web site you have just created. You should be able to stop and resume the download in Internet Explorer or any download manager which supports resumable downloads.