如何将大型(> 100MB)文件上传到Web服务? [英] How do I upload large (> 100MB) files to a web service?
本文介绍了如何将大型(> 100MB)文件上传到Web服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带有字节[]并保存的网络服务。
这适用于小文件,但是一旦达到一定的大小Web服务失败并返回请求失败,HTTP状态为404:未找到。
客户将Web服务放置在公共服务器中。客户端访问服务器lager文件无法访问Web服务功能所以我需要解决方案。
注意:
回复aspa
我尝试过:
我把这段代码放在网页配置中
I have a web service that takes a byte[] and saves it.
This works fine for "small" files, but once I hit a certain size the web service fails and returns "The request failed with HTTP status 404: Not Found."
In customer place the web service place in public server. Client access the server the lager file cannot access the web service function so i need solution for this.
Note:
Reply aspa
What I have tried:
I put this code in web config
<system.webServer>
<pre><security>
<requestFiltering allowDoubleEscaping="true">
<requestLimits maxQueryString="90000" maxAllowedContentLength="3221225472"/>
</requestFiltering>
</security>
推荐答案
您将较大的文件拆分为较小的文件(作为二进制文件);标记他们;发送他们;然后在服务器FileWatcher收到semaphor之后在另一端重新组装。
You split the larger files into smaller files (as binary); tag them; send them; then reassemble on the other end after a server "FileWatcher" receives a "semaphor".
这篇关于如何将大型(> 100MB)文件上传到Web服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文