0

I'm getting above error while downloading the 4.5GB size text file using webclient in c#.

WebClient wc = new WebClient();
wc.DownloadFile(DownloadFromURIpath, DownloadTOPath);

I split the file in half, and now it is downloading successfully.There appears to be a problem with importing files over 3 GB.
Is there any limit for webclient to download the file ? Anyone know what could be causing this?

Thanks, Kavin.S

Kavin
  • 303
  • 2
  • 14

1 Answers1

1

Try either wc.DownloadFileAsync() or follow what is mentioned here

Community
  • 1
  • 1
Rajesh
  • 934
  • 12
  • 23