WCF 大文件传输配置
2016-12-27 23:05
330 查看
<bindings> <webHttpBinding> <!--这个是接收大数据加的,设置WCF服务器端数据接收上限参数,此处单位字节,故2147483647字节==2G, 仅修改这里尚不能突破 .net默认只能传4M文件的限制,还要修改 httpRuntime maxRequestLength 参数--> <binding name="CustomWebBinding" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Streamed" sendTimeout="00:05:00"> <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /> </binding> </webHttpBinding> </bindings> <services> <service name="TravelMobileWCF_IISServer.WCFService"> <endpoint address="/service" behaviorConfiguration="web" binding="webHttpBinding" bindingConfiguration="CustomWebBinding" contract="TravelMobileWCF_IISServer.IServerInterface" /> </service> </services>
相关文章推荐
- Java8中的default方法
- 钩子函数
- C#使用Protocol Buffer(ProtoBuf)进行Unity中的Socket通信
- Mac OSX网络诊断命令
- python中几个常见的黑盒子之“字典dict” 与 “集合set”
- html布局小练习(百度首页)
- Linux 安装以及基本使用Hadoop 详解
- 数字信号处理
- python 学习笔记-列表
- 为什么这样也能运行? [ ].concat[1,2,3]
- stty--设置终端线
- DevExpress使用的过期版本解决方法
- c语言中关于头文件重复包含
- [POJ1226]Substrings(后缀数组+二分)
- youcomplete 添加 python 支持
- [luogu2964][USACO09NOV][硬币的游戏A Coin Game] (博弈+动态规划)
- 19.Java 注解
- android 监听网络状态的变化及实战
- WCF SOAP用法
- HTM-16.2代码(9)——fillMvpCand