I need to create a proxy-like solution that "sends" the downloaded file to another location. The problem I am facing is that with large downloads, the file must be fully downloaded before my forwarding code takes control of it in the Page_Loadedapplication ASP.NET.
Is there a way to get control of the Streamdownloaded file as soon as the download starts? The idea is to start forwarding as soon as the first bytes of the file begin to arrive, without waiting for the entire download to complete.
Can it be IHttpModuleused to achieve this?
source
share