(ksoap2)android到wcf HTTP请求失败,HTTP状态:413
我想将jpg文件从android发送到wcf服务器 我使用base64。谁知道更好的主意,请告诉我 不管怎样,当我调试它时,出现了一个错误HTTP请求失败,HTTP状态:413 请帮帮我 这是我的App.config(ksoap2)android到wcf HTTP请求失败,HTTP状态:413,android,wcf,ksoap2,Android,Wcf,Ksoap2,我想将jpg文件从android发送到wcf服务器 我使用base64。谁知道更好的主意,请告诉我 不管怎样,当我调试它时,出现了一个错误HTTP请求失败,HTTP状态:413 请帮帮我 这是我的App.config <?xml version="1.0" encoding="utf-8" ?> <configuration> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IProductService" maxBufferSize="2147483647" maxBufferPoolSize="2147483647"
maxReceivedMessageSize="2147483647" messageEncoding="Mtom" >
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647"/>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://182.162.136.28:8733/ProductService"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IProductService" contract="MyService.IProductService" name="BasicHttpBinding_IProductService" />
</client>
</system.serviceModel>
</configuration>
HTTP状态:413表示您发送的请求太大,wcf服务器无法接受 您可能必须更改wcf端的设置。 大概是这样的:
请将您的评论编辑到您的答案中(在“编辑”之后),以便更好地格式化。