responsestream

Copy file from remote server to client browser via my server without writing the entire file to disk or memory

☆樱花仙子☆ 提交于 2019-12-10 15:34:08
问题 This is the scenario. There is a file on a remote file server (say I have a file hosted on DropBox) I want to offer that file as a download on my web application (c# asp.net 4.0) I want to hide the location 100% of the original file (I want it to appear to come from my sever). I do not want to write this file to memory or to disk on my server. I had assumed that I would want to use a stream to stream copy. example Stream inputStream = response.GetResponseStream(); inputStream.CopyTo(Response