MANISHDAN LANGA
MANISHDAN LANGA

Reputation: 2237

GZipStream to gzip string

i´m using GZipStream to gzip string. Can someone tell me if it is possible to control the level of compression? This is because I realize it is possible to create gzip streams more compressed than .net seems to create.

Upvotes: 0

Views: 680

Answers (2)

Phil
Phil

Reputation: 43011

You will get better compression using #ZipLib

Upvotes: 1

Darin Dimitrov
Darin Dimitrov

Reputation: 1039378

This will be possible in .NET 4.5 as a new constructor has been added which allows you to specify a compression level. Another possibility is to use a third party library that will allow you to achieve that.

Upvotes: 1

Related Questions