adamhathcock / sharpcompress

SharpCompress is a fully managed C# library to deal with many compression types and formats.
MIT License
2.28k stars 480 forks source link

ReaderFactory.Open does not check for SevenZipArchive #491

Open matthewDDennis opened 4 years ago

matthewDDennis commented 4 years ago

Thus when using ReaderFactory.Open I get an error of

Cannot determine compressed stream type. Supported Reader Formats: Zip, GZip, BZip2, Tar, Rar, LZip, XZ

adamhathcock commented 4 years ago

7Zip isn’t supported as a Reader. 7Zip the format sucks because you can’t stream it. You need random file access to properly extract data. You have to use ArchiveFactory.

matthewDDennis commented 4 years ago

Yeah, I figured it out, but had to read the source code. Are there docs?

Sent from my iPhone

On Nov 21, 2019, at 2:25 PM, Adam Hathcock notifications@github.com wrote:

 7Zip isn’t supported as a Reader. 7Zip the format sucks because you can’t stream it. You need random file access to properly extract data. You have to use ArchiveFactory.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

adamhathcock commented 4 years ago

Linked from the readme: https://github.com/adamhathcock/sharpcompress/blob/master/FORMATS.md