Home Forums .NET libraries Xceed Zip & Real-Time Zip for .NET Can’t extract zips from assembly resource

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #19490 |

    Hey,

    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 breaks
    IsolatedFolder folder = new IsolatedFolder(databasePath);

    archive.CopyFilesTo(folder, false, true);

    Imported from legacy forums. Posted by macke (had 2277 views)

    User (Old forums)
    Member
    Post count: 23064

    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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.