varbinary(MAX)对象流 [英] varbinary(MAX) object stream

查看:88
本文介绍了varbinary(MAX)对象流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想问一下如何将MP3文件上传到大小在30-60 MB之间的sql数据库。我是实现上传文件的网络应用程序,但在完成我复活的消息后操作失败,因为文件大小很大!



如何解决这个问题。

PS:我将数据库参数标识为varbinary(MAX)对象流





关于

hi everybody,
i want to ask how can i upload MP3 file to sql database with size between 30-60 MB. i was implement web application that uploaded file but after completing i revived message that operation failed because file size to big!

how can i resolve this problem.
PS: i identifies the database parameter as varbinary(MAX) object stream


regards

推荐答案

谢谢我通过向web.config添加脚本来解决问题:



thanks all i resolve the problem by adding script to web.config :

<system.webServer>
     <modules runAllManagedModulesForAllRequests="true" />
     <security>
       <requestFiltering>
         <requestLimits maxAllowedContentLength="2147483647"></requestLimits>
       </requestFiltering>

     </security>





并将http最大执行运行时间设置为7200:





and set http max execution runtime to 7200:

<httpruntime maxrequestlength="100000" executiontimeout="7200" />


这篇关于varbinary(MAX)对象流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆