Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DeflateStream 4GB Limit in .NET

From MSDN: DeflateStream Class

DeflateStream cannot be used to compress files larger than 4 GB.

Are there any other implementations for .NET without the 4 GB limit?

NOTE: I really need to decompress a file in GZ format with content larger than 4 GB. Can any code do that?

like image 442
Luca Martinetti Avatar asked Feb 02 '09 22:02

Luca Martinetti


2 Answers

FYI, we have removed the 4 GB limit from DeflateStream in .NET 4.

like image 77
Justin Van Patten Avatar answered Sep 21 '22 01:09

Justin Van Patten


There is sample code at CodeProject using the 7-Zip library.

The license is open, so you should be able to use this in your project.

7-Zip also supports GZ files.

like image 34
benPearce Avatar answered Sep 21 '22 01:09

benPearce