bezzad / Downloader

Fast, cross-platform and reliable multipart downloader with asynchronous progress events for .NET applications.
MIT License
1.25k stars 193 forks source link

Corrupted download #115

Closed WellitonToledo closed 1 year ago

WellitonToledo commented 1 year ago

Hello,

trying to download a zip file from an .ashx handler url.

Most of the times the downloaded file is corrupted.

Here the code:

using Downloader;

var downloadOpt = new DownloadConfiguration()
{
    ChunkCount = 1, // file parts to download, default value is 1
    OnTheFlyDownload = true, // caching in-memory or not? default values is true
    ParallelDownload = false // download parts of file as parallel or not. Default value is false
};

var downloader = new DownloadService(downloadOpt);

string file = @"YourPath\fileName.zip";
string url = @"https://vl.actuar.net.br/ActuarAcesso";

downloader.DownloadFileTaskAsync(url, file).Wait();

Regards,

bezzad commented 1 year ago

@WellitonToledo Please use the last version of the Downloader (v3.0.0-beta) and if you have a problem again let me know. I tested it with the new version and it has no issues.

bezzad commented 1 year ago

@WellitonToledo Is your problem solved with the new version or not?

bezzad commented 1 year ago

version 3.0.1 was released too.