111,098
社区成员




using (GZipStream stream = new GZipStream(File.Create("test.gz"), CompressionMode.Compress))
{
byte[] bytes = Encoding.Default.GetBytes("123");
stream.Write(bytes, 0, bytes.Length);
}
gzip -d test.gz
cat test
====
123
我这边没问题啊
gzip -V
====
gzip 1.3.5
(2002-09-30)
Copyright 2002 Free Software Foundation
Copyright 1992-1993 Jean-loup Gailly
This program comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H HAVE_MEMORY_H HAVE_STRING_H HAVE_LSTAT
Written by Jean-loup Gailly.