web服务传输的大小限制为50kb
本文关键字:50kb 服务 传输 web | 更新日期: 2023-09-27 18:07:53
我有一个web服务,我试图在发送数据时降低其功能。数据是一个字节数组,我发现我可以发送的最大大小字节数组约为50kb(少一点,但这可能是由于头和其他东西)。
如何增加这个大小?我在看服务网站。配置并添加以下内容:
<binding name="BasicHttpBinding_BasicAuth">
<readerQuotas maxDepth="64" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="16384" />
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Basic" />
</security>
</binding>
And also tried:
<httpRuntime maxRequestLength="8000"></httpRuntime>
很好,但是没有用。
任何想法?
我也需要这样做,下面的工作:
<httpRuntime requestValidationMode="2.0" maxRequestLength="6225920"/>