Error during the dowloading of the bundle installer

When we try to download the bundle installer from the partner ID link we get incomplete files.

    static void Main(string[] args)
    {
        WebClient client = new WebClient();
        client.DownloadFileCompleted += new AsyncCompletedEventHandler(DownloadCompleted);
        client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(DowloadProgressChanged);
        client.DownloadFile(new Uri("http://download.overwolf.com/install/Download?PartnerId=3993"), @"C:\OWTest.exe");
    }

    private static void DowloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
    {
        Console.WriteLine(e.ProgressPercentage);
    }

    private static void DownloadCompleted(object sender, AsyncCompletedEventArgs e)
    {
        Console.WriteLine("HEY");
    }

The result file size is 1304 instead of 1337 kb.

Impact for my app: [lhigh]

Following our Slack conversation, iā€™m adding here that using DownloadFile gave the same results as DownloadFileAsync.

Try to look at this implementation

2 Likes

@tom.wolf FYI @VrezhAleksDev confirmed that Gzip worked. Thanks
CLosing the ticket.