❔ Problem with downloading on hard drive
Whenever I try to use webclient.DownloadFileAsync("myurl", "the path on my hard disk"), it creates a 0 zero bytes file.
5 Replies
Don't use
WebClient
Use HttpClient
Download bytes, then use a filestream to write those bytes to a fileheres an example
Doesn't even need the
Uri
tbhthe one with the string parameter creates a uri anyway
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.