-
答案 1:
上传 NetTcp协议, 通过二进制流上传 System.IO.File.WriteAllBytes();配置改大点。< bindings > < netTcpBinding > < binding name="netTcpBindConfig"closeTimeout="00:01:00"openTimeout="00:01:00"receiveTimeout="00:10:00"sendTimeout="00:01:00"transactionFlow="false"transferMode="Buffered"transactionProtocol="OleTransactions"hostNameComparisonMode="StrongWildcard"listenBacklog="10"maxBufferPoolSize="2147483647 "maxBufferSize="2147483647 "maxConnections="10"maxReceivedMessageSize="2147483647 " > < readerQuotas maxDepth="32"maxStringContentLength="2147483647 "maxArrayLength="2147483647 "maxBytesPerRead="4096"maxNameTableCharCount="16384" / > < reliableSession ordered="true"inactivityTimeout="00:10:00"enabled="false" / > < security mode="Transport" > < transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" / > < /security > < /binding > < /netTcpBinding > < /bindings >资料应该挺多的。不过知乎WCF的问题的确很少啊。
用WCF做大文件上传,应该搭配什么样的传输协议和配置?
2012-01-19 19:43:06 来源: 点击:
相关热词搜索:
上一篇:互联网公司怎么做知识管理?有哪些关键点和困难?怎么突破?
下一篇:为什么 Apple 网上商店发货(iPad 2)这么慢?