Home › Forums › .NET libraries › Xceed Zip & Real-Time Zip for .NET › Can’t extract zips from assembly resource
I can’t seem to extract the information from a resource in my assembly. I get:
“An unhandled exception of type ‘Xceed.Zip.InvalidZipStructureException’ occurred in xceed.zip.dll
Additional information: The zip end header signature could not be found in the zip file.”
The zip files were created with WinRar at first, so I tried creating them with Xceed.Zip. But neither one produced zip files I could open.
Here is my code:
Assembly hellas = Assembly.GetExecutingAssembly();Stream memberDBStream = hellas.GetManifestResourceStream(“MyFile.zip”);
StreamFile file = new StreamFile(memberDBStream);ZipArchive archive = new ZipArchive(file); //<————— This is where it breaksIsolatedFolder folder = new IsolatedFolder(databasePath);
archive.CopyFilesTo(folder, false, true);
Imported from legacy forums. Posted by macke (had 2277 views)
Sorry for spamming, I just noticed that this was a bug and has been fixed, will update right away.
Imported from legacy forums. Posted by macke (had 2954 views)