SharpDevelop Community

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

#ZipLib seems to fail on extracting files from a zip that are close to or exactly 4GB in size.

Last post 07-28-2008 8:21 AM by elsdon. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-23-2008 4:47 AM

    • elsdon
    • Not Ranked
    • Joined on 07-23-2008
    • Posts 2

    #ZipLib seems to fail on extracting files from a zip that are close to or exactly 4GB in size.

    Hello there,

    This may or may not be reported yet but I was unable to find it, if it was.

    I don't know if this is the real cause of it, but with several files that I have repeatedly tried to call FastZip to extract, when the files are around 4,000,000,000 bytes ziplib seems to just extract a file of 0 bytes out and go to the next file. I don't know if it's due to the fact that it can't decide to use regular Zip or Zip64 or whether or not that has any bearing on it at all, but even when I tried to force it to use Zip64 it didn't seem to work.

    Thanks,
    Elsdon

  • 07-27-2008 4:00 AM In reply to

    Re: #ZipLib seems to fail on extracting files from a zip that are close to or exactly 4GB in size.

     Hi,

    UseZip64 has not meaning when extracting, all the detail should be available in the header. A bit of digging into the header or probably faster a bit of debugging when the header is being read should give you a clue from what you say.

    hth, -jr-

     

  • 07-28-2008 8:21 AM In reply to

    • elsdon
    • Not Ranked
    • Joined on 07-23-2008
    • Posts 2

    Re: #ZipLib seems to fail on extracting files from a zip that are close to or exactly 4GB in size.

    Hrm, I'm not entirely sure what you are saying.. But, I can only give you what I can see I know I suppose. I am just calling FastZip's ExtractZip's function and it seems to extract files from the source zip that are greater than 4GB, and less than 4GB, just fine.. but anything in and around exactly 4GB seems to just output a file of 0 byte size.

    FastZip zip = new FastZip();
    zip.ExtractZip(filename, working directory, null);

    That's pretty much all that I am doing.

    Thanks,
    Elsdon

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.