我现在用VC6跟C#做C/S结构的,所以传输要压缩数据,用什么算法好?要有源代码的。
解决方案 »
- 新浪微博v2 SDK for WinRT 初版发布
- 请教一个Panel拖对的问题
- 关于dockpanel,实现打开一张页面FNEW首先判断dockpanel.documents 里有没有停靠页面 如果有的话将新打开停靠老页面的左边
- C# 如何向指定的客户端发送消息
- 事件中再添加另一个事件,应该怎样写代码啊?请前辈指点!
- C# 尝试读取或写入受保护的内存。这通常指示其他内存已损坏
- C#如何入门最快?
- 一个VB6的Google API Rank Checker程序,求高手改写成C#代码,100分!!!
- com+是否适合大批量事务计算?
- 在.net精简版中,如何读取XML文件????????????????????????????????????????
- 高手救命啊,数据写不进数据库!!!急死了!!!
- System.Transactions类
看,全免费,代码公开,不过目前在国内相关资料尚不多,
System.IO.MemoryStream _m = new System.IO.MemoryStream(b,0,b.Length);
Console.WriteLine("number of bytes read: "+_m.Length);//////有数字
zlib.ZOutputStream outZStream = new zlib.ZOutputStream(_m, zlib.zlibConst.Z_DEFAULT_COMPRESSION);
Console.WriteLine("number of bytes read: "+outZStream.Length);// = 0 ??
System.IO.FileStream outFileStream = new System.IO.FileStream("c:\\t.txt", System.IO.FileMode.Create);
byte[] c = new byte[outZStream.Length];
outFileStream.Write(b,0,b.Length);
outFileStream.Flush();outZStream.Read(c,0,c.Length);string xx = System.Text.Encoding.Default.GetString(c,0,c.Length);
this.textBox2.Text = xx;