简体   繁体   中英

50kb size limit on a webservice transfer?

I have a web service and I'm trying to fall its function while sending it data. The data is a byte array, I'm finding that the maximum size byte array I can send is about 50kb (bit less but that's probably due to headers and other things).

How can I increase this size? I was looking at the service web.config and added this to it:

<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>

As well but to no avail.

Any ideas?

我还需要这样做,并且以下工作有效:

<httpRuntime requestValidationMode="2.0" maxRequestLength="6225920"/>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM