Make GZipStream the same as System.IO.Compression.GZipStream on Windows Store apps

May 5, 2013 at 9:59 AM
What about creating GZipStream the same as it is implemented in .NET?
The sources can be retrieved from .NET.
So the code will be the same for both platforms and it will be possible to use HttpClient also.
May 6, 2013 at 3:04 PM
Since the .NET GZipStream supports compression as well and we don't want to provide a full gzip implementation (the current implementation uses the built-in decompression framework using some trickery, but not possible the other way around), it would be really tough to do this.
However they both implement "Stream", so you can still share a large amount of code between them. Ie.
Stream stream = null;
    stream = new GzipInflateStream();
   stream = new GZipStream();
//same code from here on...
If you need gzip support in HttpClient, check out this package: