1

We have an original zip library which uses the SharpZipLib and .NET 2.0. We need to research what is now possible in .NET 4.5 using System.IO.Compression and System.IO.Compression.ZipArchive.

Should we use .NET 4.5 libraries or use a 3rd party open source library? Also, we need to be able to zip/unzip files larger than 4GB. Samples, blogs, any help is welcomed.

Thank you

Max
  • 1,289
  • 3
  • 26
  • 50

2 Answers2

2

3rd party. Use DotNetZip. It supports the Zip64 format.

Mark Adler
  • 101,978
  • 13
  • 118
  • 158
1

4GB is the maximum addressible size for a 32-bit pointer, hence it will not work for larger file. But you can try Zip64 which will work for larger files. This post might help you.

Hope this will help!

Thanks Suresh

Community
  • 1
  • 1
Suresh
  • 1,131
  • 1
  • 15
  • 28
  • weird... I just used that library and it compressed a > 4GB just fine, with or without the UseZip64. Is it because my Windows is 64 bits? – Max Mar 25 '14 at 22:29
  • Theoretically a 64-bit architecture can address 16.8 million terabytes of memory, [This](http://msdn.microsoft.com/en-us/library/windows/desktop/aa366778%28v=vs.85%29.aspx) post might give you more detail about addressible size for 64 bit machine. Thanks Suresh – Suresh Mar 26 '14 at 01:55