I need to download, process and save an 8 GB XML file from a secure web server. I can upload the file using the class WebRequest, but it will take a VERY long time. In addition, I know that the file is structured in such a way that it is suitable for processing in discrete pieces.
How can I “transfer” this file in such a way that I get only pieces of the size of a piece that I can work on, without having to get the whole stream at a time?
Edit
I forgot to mention - we are hosted on Azure. The idea that comes to mind is to provide a working role that simply uploads large files and can take as much time as it wants. As much as possible?
source
share