摘要: public static byte[] Compress(DataSet ds) { BinaryFormatter ser = new BinaryFormatter(); MemoryStream ms = new MemoryStream(); //Binary 作为二进制内容序列化。仅可在 ADO.NET 2.0 中使用 ds.RemotingFormat = SerializationFormat.Binary; //序列化到MemoryStream ser.Serialize(ms, ds); //压缩后的MemoryStream MemoryStream compressMs. 阅读全文
posted @ 2006-12-03 22:44 greystar 阅读(131) 评论(0) 推荐(0)