On Aug 11, 2011, at 9:00 AM, tsukrov wrote: > As I found GZipStream does nothing in Release 1.0.2. Read reads 0 bytes/ > Write writes 0 bytes. > Please confirm.
I can't reproduce. This is the fragment I tested: const string expected = "Hello, compressed world!"; var o = new MemoryStream (); using (var gzip = new StreamWriter (new GZipStream (o, CompressionMode.Compress))) gzip.WriteLine (expected); o = new MemoryStream (o.ToArray ()); o.Position = 0; Log.Debug ("HelloApp", "gzip compressed data: {0}", string.Join (" ", o.ToArray ().Select (b => b.ToString ("x2")))); string result; using (var gzip = new StreamReader (new GZipStream (o, CompressionMode.Decompress))) result = gzip.ReadLine (); if (result != expected) throw new InvalidOperationException ("GZip test failed! Got '" + result + "'; expected '" + expected + "'."); Are you sure that you're disposing of the GZipStream instance? Thanks, - Jon _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid