【问题标题】:How to transfer uploaded file size greater than 16kb using wcf service如何使用 wcf 服务传输大于 16kb 的上传文件
【发布时间】:2014-08-27 20:44:16
【问题描述】:

当我上传超过 16kb 时,wpf 应用程序中的连接被中止 客户端 App.Config 文件


【问题讨论】:

  • 您是否考虑过将有效负载分成多条消息?

标签: wpf wcf


【解决方案1】:

您可以尝试设置更大的最大消息大小(这可以应用于服务和客户端):

<system.serviceModel>
    <bindings>
      <wsHttpBinding>
        <binding name="GenericBinding" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
        </binding>
      </wsHttpBinding>
    </bindings>
</system.serviceModel>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多