Search code examples
c#webclientdata-storage

Where does WebClient stores data he downloads?


I am writing an app that downloads a ton of json data (like 20 gb a day, thousands of 2-3 mb per attempt), but stores only like 0.001% of it.

I want to know where does it stores temporary data, does it saves it on hdd or stores in RAM?

Can I change the location where it puts the data, if it stores it on HDD?


Solution

  • It stores everything in RAM.

    You can decompile it or refer to reference sources.

    I think DownloadBits method is good starting point.