假设我想上传一个2GB的文件...... :) [英] let's say i wanted to upload a 2GB file... :)

查看:75
本文介绍了假设我想上传一个2GB的文件...... :)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

纯粹是为了看看它是否可以完成,我将如何使用ASP.Net和SQL来上传(以及我们在下载时使用
,下载)2 GB文件/>
服务器,尽可能快?


关于块的东西...


谢谢!

解决方案

下载很简单(关闭缓冲并使用writefile),但asp.net

不支持2gb上传,因为上传文件缓存在内存中。

您将需要编写或购买组件。


无论如何都试图支持这么大的文件如果你有很多用户,asp.net会导致很多问题。长时间的转移将占用b
线程池,并限制你大约60-100(在你将asp.net撞到

max线程之后)并发用户。 (本地iis仅支持大约200,

max参数)。

- 布鲁斯(sqlwork.com)



< ne ********** @ gmail.com>在消息中写道

news:11 ********************* @ o13g2000cwo.googlegro ups.com ...

纯粹是为了看看它是否可以完成,我将如何使用ASP.Net和SQL
服务器上传(以及
当我们使用它时,下载)2 GB文件尽可能快?

关于大块的东西...

谢谢!



这不是使用普通上传方法是不可行的,因为它们需要将整个文件加载到服务器内存中。相反,你需要一种技术

,它将数据流入磁盘,因此它不会消耗掉所有

服务器的内存。

以下是一些可以帮助您的第三方选项:
http://fileup.softartisans.com/fileup-231.aspx
http://fileup.softartisans.com/fileup-131.aspx


-

我希望这有帮助,

Steve C. Orr,MCSD,MVP
http:/ /SteveOrr.net

< ne ********** @ gmail.com>在消息中写道

news:11 ********************* @ o13g2000cwo.googlegro ups.com ...

纯粹是为了看看它是否可以完成,我将如何使用ASP.Net和SQL
服务器上传(以及
当我们使用它时,下载)2 GB文件尽可能快?

关于块的事情......

谢谢!



Bruce Barker写道:

下载很容易(关闭缓冲并使用writefile),但是
asp.net不支持2gb上传,因为上传文件是缓存在内存中的。你将需要编写或购买一个组件。

无论如何,如果你有很多用户,尝试用asp.net支持这么大的文件会导致很多问题。长的
转移将占用线程池,并限制你大约60-100
(在你的asp.net碰到最大线程后)并发用户。 (本地
iis仅支持大约200,最大参数后)。

- 布鲁斯(sqlwork.com)




这个将工作在2.0。


-

Jim Cheshire

JIMCO软件
http://www.jimcosoftware.com

FrontPage的FrontPage加载项2000年 - 2003年


blockquote>

purely to see if it can be done, how would i go about uploading (and
while we''re at it, downloading) a 2 GB file using ASP.Net and SQL
Server, as fast as possible?

something about chunks...

thanks!

解决方案

the download is easy (turn off buffering and use writefile), but asp.net
does not support 2gb upload, beacuse the upload file is buffered in memory.
you will need to write or buy a component.

in any case trying to support files this large with asp.net will cause lots
of problems if you have very many users. the long transfers will tie up
thread pools, and limit you to about 60-100 (after you bump asp.net to the
max threads) concurrent users. (native iis only supports about 200, after
max parameters).
-- bruce (sqlwork.com)


<ne**********@gmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...

purely to see if it can be done, how would i go about uploading (and
while we''re at it, downloading) a 2 GB file using ASP.Net and SQL
Server, as fast as possible?

something about chunks...

thanks!



This isn''t feasible with normal upload methods because they require the
entire file to be loaded into server memory. Instead you need a technique
that streams the data to disk as it comes in so it doesn''t consume all the
server''s memory.
Here are some 3rd party options that may help you out:
http://fileup.softartisans.com/fileup-231.aspx
http://fileup.softartisans.com/fileup-131.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
<ne**********@gmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...

purely to see if it can be done, how would i go about uploading (and
while we''re at it, downloading) a 2 GB file using ASP.Net and SQL
Server, as fast as possible?

something about chunks...

thanks!



Bruce Barker wrote:

the download is easy (turn off buffering and use writefile), but
asp.net does not support 2gb upload, beacuse the upload file is
buffered in memory. you will need to write or buy a component.

in any case trying to support files this large with asp.net will
cause lots of problems if you have very many users. the long
transfers will tie up thread pools, and limit you to about 60-100
(after you bump asp.net to the max threads) concurrent users. (native
iis only supports about 200, after max parameters).
-- bruce (sqlwork.com)



This will work in 2.0.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003



这篇关于假设我想上传一个2GB的文件...... :)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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