我正在进行更大的ajax调用,以便从WCF Rest Service中恢复一些图片。 当响应超过250 mb时,我收到错误。不知道问题出在哪里。 Wcf有最大的响应,我没有得到任何网络服务错误,据我所知,ajax响应是无限的。
我感谢任何帮助!
"parserror" , "unexpected end of input"
WCF配置
<webHttpBinding>
<binding name="secureBinding" maxBufferPoolSize="21474836470" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="320" maxStringContentLength="2147483647" maxArrayLength="163840" maxBytesPerRead="40960" maxNameTableCharCount="163840"/>
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
</binding>
</webHttpBinding>
Ajax Call:
$.ajax({
url: 'xxx',
type: 'GET',
timeout: '30000000',
contentType: 'application/json',
success: function (data) {
saveData(data.data, data.key);
localStorage.setItem("DataLoadad", "1");
},
error: function(jqxhr, textStatus, settings, response) {
alert("Error");
localStorage.setItem("DataLoadad", "0");
}
});