源码 (不包含通信框架源码,通信框架源码请另行下载)上一篇文章写了如何通过TCP通信发送图片到客户端,有朋友问如何传送文件,本文将就如何发送文件进行探讨。对于比较小的文件,可以把文件转化成字节形式,用契约类包装一下,服务器收到后,再把字节转化成文件即可,这也是本文中实现的方式,这种方式的优点是比较简...
处理客户端发来的文件 private void IncomingUploadFile(PacketHeader header, Connection connection, FileWrapper wrapper) { try { writeFile(wrapper._fileData, @"D:\" + wrapper.FileName); ResMsgContract contract = new ResMsgContract(); contract.Message = "上传成功"; //发送回复信息给客户端 connection.SendObject("ResUploadFile", contract); } catch (Exception ex) { } }
health.zjol.com.cn/jiuyi/ccgdfk/20150305369775.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369773.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369772.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369771.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369770.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369769.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369768.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369766.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369765.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369764.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369763.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369761.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369760.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369758.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369757.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369756.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369755.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369754.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369753.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369752.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369751.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369750.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369748.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369747.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369746.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369745.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369743.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369742.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369739.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369737.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369736.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369735.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369734.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369732.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369731.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369729.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369728.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369727.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369726.html
health.zjol.com.cn/jiuyi/ccgdfk/20150305369725.html
www.xtol.cn/2015/0305/2950208.shtml
www.xtol.cn/2015/0305/2950207.shtml
www.xtol.cn/2015/0305/2950216.shtml
www.xtol.cn/2015/0305/2950217.shtml
www.xtol.cn/2015/0305/2950221.shtml
www.xtol.cn/2015/0305/2950220.shtml
www.xtol.cn/2015/0305/2950223.shtml
www.xtol.cn/2015/0305/2950219.shtml
www.xtol.cn/2015/0305/2950232.shtml
www.xtol.cn/2015/0305/2950222.shtml
www.xtol.cn/2015/0305/2950231.shtml
www.xtol.cn/2015/0305/2950234.shtml
www.xtol.cn/2015/0305/2954136.shtml
zx.zynews.com/haoyiyuan/jrgz/201503054629886.html
zx.zynews.com/haoyiyuan/jrgz/201503054629887.html
zx.zynews.com/haoyiyuan/jrgz/201503054629891.html
zx.zynews.com/haoyiyuan/jrgz/201503054629893.html
zx.zynews.com/haoyiyuan/jrgz/201503054629897.html
zx.zynews.com/haoyiyuan/jrgz/201503054629900.html
www.cjn.cn/hyzx/jkzd/8180537522.html
www.cjn.cn/hyzx/jkzd/8180534503.html
www.cjn.cn/hyzx/jkzd/8180534686.html
www.cjn.cn/hyzx/jkzd/8180535252.html
www.cjn.cn/hyzx/jkzd/8180534996.html
www.cjn.cn/hyzx/jkzd/8180534877.html
www.cjn.cn/hyzx/jkzd/8180535096.html
www.cjn.cn/hyzx/jkzd/8180535682.html
www.cjn.cn/hyzx/jkzd/8180537768.html
www.cjn.cn/hyzx/jkzd/8180532917.html
www.cjn.cn/hyzx/jkzd/8180533201.html
www.cjn.cn/hyzx/jkzd/8180533101.html
www.hj.cn/hyzx/xzrw/20150305/1925946.html
www.hj.cn/hyzx/xzrw/20150305/1925795.html
www.hj.cn/hyzx/xzrw/20150305/1926146.html
www.hj.cn/hyzx/xzrw/20150305/1926252.html
www.hj.cn/hyzx/xzrw/20150305/1925885.html
www.hj.cn/hyzx/xzrw/20150305/1926015.html
www.hj.cn/hyzx/xzrw/20150305/1925921.html
www.hj.cn/hyzx/xzrw/20150305/1925995.html
www.hj.cn/hyzx/xzrw/20150305/1925683.html
www.hj.cn/hyzx/xzrw/20150305/1925982.html
www.hj.cn/hyzx/xzrw/20150305/1925754.html
www.hj.cn/hyzx/xzrw/20150305/1925684.html
www.hj.cn/hyzx/xzrw/20150305/1925728.html
www.hj.cn/hyzx/xzrw/20150305/1925613.html
www.hj.cn/hyzx/xzrw/20150305/1926239.html
www.01ny.cn/hyxw/gcjc/20150305/1196011.html
www.01ny.cn/hyxw/gcjc/20150305/1195994.html
www.01ny.cn/hyxw/gcjc/20150305/1196010.html
www.01ny.cn/hyxw/gcjc/20150305/1196005.html
www.01ny.cn/hyxw/gcjc/20150305/1195997.html
www.01ny.cn/hyxw/gcjc/20150305/1196009.html
www.01ny.cn/hyxw/gcjc/20150305/1196007.html
www.01ny.cn/hyxw/gcjc/20150305/1196002.html
www.01ny.cn/hyxw/gcjc/20150305/1196006.html
www.01ny.cn/hyxw/gcjc/20150305/1195995.html
www.01ny.cn/hyxw/gcjc/20150305/1196003.html
www.01ny.cn/hyxw/gcjc/20150305/1195998.html
www.01ny.cn/hyxw/gcjc/20150305/1195993.html
www.01ny.cn/hyxw/gcjc/20150305/1195996.html
health.people.com.cn/xywy/ccgdfk/fkzl/8201585685.html
health.people.com.cn/xywy/ccgdfk/fkzl/8202075387.html
health.people.com.cn/xywy/ccgdfk/fkzl/8202783262.html
health.people.com.cn/xywy/ccgdfk/fkzl/8203174487.html
health.people.com.cn/xywy/ccgdfk/fkzl/8203362143.html
health.people.com.cn/xywy/ccgdfk/fkzl/8203647512.html
health.people.com.cn/xywy/ccgdfk/fkzl/8203917166.html
health.people.com.cn/xywy/ccgdfk/fkzl/8204179602.html