首页
科技
登录
6mi
u
盘
搜
搜 索
科技
WCF 大文件传输配置
WCF 大文件传输配置
it
2022-06-19
74
<
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>
转载于:https://www.cnblogs.com/Lulus/p/7872352.html
相关资源:WCF双工通讯聊天传文件
转载请注明原文地址: https://win8.8miu.com/read-1497987.html
专利
最新回复
(
0
)