谢谢

解决方案 »

  1.   

    如果lz想操作压缩包,建议还是看看SharpZipLib先,http://sharpdevelop.net/OpenSource/SharpZipLib/Default.aspx实在是这个不行再用Managed C++不迟。
      

  2.   

            [WebMethod(Description = "返回DataSetSurrogate对象用Binary序列化并Zip压缩后的字节组。")]
            public byte[] GetDataSetSurrogateZipBytes()
            {
                DataSet dataset = GetNorthWindDataSet();
                DataSetSurrogate dss = new DataSetSurrogate(dataset);
                BinaryFormatter ser = new BinaryFormatter();
                MemoryStream ms = new MemoryStream();
                ser.Serialize(ms, dss);
                byte[] buffer = ms.ToArray();
                这里怎么调用SharpZipLib的压缩?
                return zipBuffer;        }
    在客户端怎么使用SharpZipLib的解压
      

  3.   

    http://www.codeproject.com/KB/dotnet/mscompression.aspx
    参考这个帖子吧。