SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Windows XP built in unzip doesn't unzip SharpZip lib compressed files.

Last post 07-13-2009 7:30 AM by DavidPierson. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-30-2009 11:31 AM

    Windows XP built in unzip doesn't unzip SharpZip lib compressed files.

     Windows XP built in unzip is not able to unzip SharpZip lib(ICSharpCode.SharpZipLib.dll ver 0.85.5.452. ) compressed files.

  • 07-06-2009 9:53 PM In reply to

    • dimon
    • Not Ranked
    • Joined on 07-02-2009
    • Posts 4

    Re: Windows XP built in unzip doesn't unzip SharpZip lib compressed files.

    I've encountered the same error trying to use that library with .Net 3.5. even though other zip apps are able to unzip the file, Windows Zip isn't... it's saying "The file is blocked" or something. Try using FastZip class (CreateZip method), this worked for me.

  • 07-13-2009 7:30 AM In reply to

    Re: Windows XP built in unzip doesn't unzip SharpZip lib compressed files.

    Windows built-in cannot handle the Zip64 format, which is the default in the 0.85 version of SharpZip.

    If you are using ZipOutputStream (my preference), just add this line:

    zs.UseZip64 = UseZip64.Off;

    before the first
    zs.PutNextEntry(newEntry);

    Note that files over 4GB will require Zip64 format, but otherwise this will fix it.
    Regards,

    David

Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.