Open nikoslyk203 opened 3 years ago
Archives expect a random access stream. I don't know what HttpClient is doing with the response stream of that but it could not be buffered.
You should use Reader or buffer the stream yourself (to memory or a file) and see what happens.
Also, use async/await instead of .Result
I have downloaded a zip file as a stream through HttpClient in C# and I am trying to open one of the files inside the archive as a stream but for some reason when I use OpenEntryStream the stream returned is empty. Am I doing something wrong? The Zip File isn't corrupted because I tried to unzip the files to my disk and it did it successfully.