Can't open Zip archive #200

Open
opened 2026-01-29 22:08:13 +00:00 by claunia · 0 comments
Owner

Originally created by @Sigurd2656 on GitHub (Jun 26, 2017).

I'm passing a memory stream which I get from byte array which is zip archive with one MS word file. It works fine if I compress this file to *.7z or *.rar.

var archive = ArchiveFactory.Open(archiveMemStream);

On this step I get InvalidOperationException. Additional information: Cannot determine compressed stream type. Supported Archive Formats: Zip, GZip, Tar, Rar, 7Zip, LZip

Originally created by @Sigurd2656 on GitHub (Jun 26, 2017). I'm passing a memory stream which I get from byte array which is zip archive with one MS word file. It works fine if I compress this file to *.7z or *.rar. `var archive = ArchiveFactory.Open(archiveMemStream);` On this step I get InvalidOperationException. Additional information: Cannot determine compressed stream type. Supported Archive Formats: Zip, GZip, Tar, Rar, 7Zip, LZip
claunia added the question label 2026-01-29 22:08:13 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#200