摘要:
public static string Compress(string uncompressedString) { byte[] byteData = Encoding.GetEncoding("GB18030").GetBytes(uncompressedString); using (MemoryStream srcStream = new MemoryStream(byteData)) { using (var destStream = new MemoryStream()) { using (GZipStream compress = new GZipStream 阅读全文