如何在asp.net应用程序中上传超过2GB的视频 [英] how to upload more than 2GB video in asp.net application
本文介绍了如何在asp.net应用程序中上传超过2GB的视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hello,
I am trying to upload large video into sql server through our asp.net application.( Using File uploader and Bytes concept)..
i created column type in sql server as varbinary(MAX); for video uploading. from database side we can fix using filestream concept for larger file.
BUT,
When i try to upload more than 4MB, i got error on chrome browser as Web page is not available. So, i came to know that we need to increase the size in web.config
so i increased size in web.config.
<system.web>
<httpRuntime executionTimeout="120" maxRequestLength=" 2147483647" />
</system.web>
Now, i was able to upload video within 2GB as httpRuntime maxReqeustLenth is 2GB (int)
So, My requirement want to upload More than 2GM means how can i achieve ?
Help needed.
Thanks
推荐答案
1.此配置设置的默认值为4096 KB,即4MB ,就像你在 MSDN [ ^ ]
2.因此,您必须在配置文件中将此值增加到允许的最大值,但您还应该查看IIS约束: IIS中的requestFiltering的requestLimits元素 [ ^ ]
3.maxRequestLength
的最大值是2147483647
inKB
表示2T B
(Terra Bytes)而不是2MB
。问题是这个设置受到IIS设置的影响,就像我在第二点所说的那样,所以你应该增加一些与IIS相关的配置。
1.The default value for this config setting is 4096 in KB, that means 4MB, like you can see in MSDN[^]
2.So you have to increase this value, in your config file, to maximum allowed, but you should have a look also in the IIS constrains: requestLimits element for requestFiltering in IIS[^]
3.The maximum value formaxRequestLength
is2147483647
inKB
that means2TB
(Terra Bytes) and not2MB
. The problem is that this setting is affected from IIS settings like I said in my 2nd point, so you should increase also some IIS related configurations.
这篇关于如何在asp.net应用程序中上传超过2GB的视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文