BrandGhost
Watch Out For THIS When Downloading Large Files in C#

Watch Out For THIS When Downloading Large Files in C#

Downloading files is a common thing that we have to do in applications and we can download files in C# very easily! However, we have to pay special attention when we're downloading big files because it's easy to make a common mistake that could cause BIG issues in your application. The first thing we'll look at is how to ensure we don't grab the WHOLE file all at once and jam it into memory. Not a great time to be had by doing that with very big files. The next thing we'll look at is just how silly the Stream API is in C#. It's easy to make mistakes when assuming too much about the streams we have!
An error has occurred. This application may no longer respond until reloaded. Reload