大文件下载 [英] Large File Download

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

问题描述

Internet Explorer有4GB的文件下载限制(2 GB上的IE6)。 Firefox不会有这个问题(没有测试尚未Safari浏览器)
(这里更多信息: http://support.microsoft.com/kb/298618

Internet Explorer has a file download limit of 4GB (2 GB on IE6). Firefox does not have this problem (haven't tested safari yet) (More info here: http://support.microsoft.com/kb/298618)

我工作的一个网站,将允许用户下载非常大的文件(达到和超过100GB)

I am working on a site that will allow the user to download very large files (up to and exceeding 100GB)

什么是做的最好的方式本不使用FTP 。最终用户必须能够从使用HT​​TP有浏览器下载该文件。我不认为Flash或Silverlight可以这么远的文件保存到客户端,因为我知道他们不会削减它。

What is the best way to do this without using FTP. The end user must be able to download the file from there browser using HTTP. I don't think Flash or Silverlight can save files to the client so as far as I know they won't cut it.

我猜我们需要一个ActiveX或Java applet拉这一关。类似的东西MSDN使用下载管理器。

I'm guessing we will need an ActiveX or Java applet to pull this off. Something like the download manager that MSDN uses.

有谁知道商业(或免费)组件,将做到这一点的?我们不希望用户必须安装一个浏览器中广下载管理器(如GetRight时),我们希望它仅与下载在我们的现场工作。

Does anyone know of a commercial (or free) component that will do that? We do not want the user to have to install a "browser wide" download manager (like GetRight), we want it to only work with downloading on our site.

更新:下面是一些额外的信息,以帮助澄清什么,我试图做的。最上面的4GB的限制的文件将大型高清视频文件(其对于视频编辑公司)。这些将由用户在互联网上下载,这不会是人在本地网络上。我们要的文件是通过HTTP使用(有些用户会是不会允许FTP,BT下载等防火墙后面)。该会的文件,最终用户可以下载库,所以我们不是在谈论一次性大的下载。该会在下载一个半正规的基础上不同的大文件。

Update: Here is some additional info to help clarify what I'm trying to do. Most of the files above the 4GB limit would be large HD video files (its for a video editing company). These will be downloaded by users across the internet, this isn't going to be people on a local network. We want the files to be available via HTTP (some users are going to be behind firewalls that aren't going to allow FTP, Bittorrent, etc.). The will be a library of files the end user could download, so we aren't talking about a one time large download. The will be download different large files on a semi-regular basis.

到目前为止库的@埃德蒙 - 泰建议是迄今为止最接近的解决方案。唯一的问题是,它不大于4GB的文件工作(它在开始下载前瞬间失败,他们可能使用的是32位整数的地方,该文件的内容长度超过)。

So far Vault that @Edmund-Tay suggested is the closest solution so far. The only problem is that it doesn't work for files larger than 4GB (it instantly fails before starting the download, they are probably using a 32bit integer somewhere that the content length of the file exceeds).

这工作就像链接的文章@spoulson一个java程序的(或ActiveX组件,因为这个问题只能在IE中存在)来将是最好的解决方案,但到目前为止,我还没有得到任何运气找到一个没有类似的东西(多部分下载,简历等)。

A java applet (or ActiveX component since the problem only exist in IE) that worked like the article @spoulson linked to would be the best solution, but so far I haven't had any luck finding one that does anything like that (multipart downloads, resume, etc.).

看起来我们可能需要写我们自己的。另一种选择是写一个与扩展或MIME类型相关联的.NET应用程序(可能的ClickOnce)。那么用户实际上将被下载从在EXE /的ClickOnce应用程序,告诉应用程序下载什么文件打开Web服务器的小文件。这是MSDN下载器是如何工作的。然后,最终用户将只需要下载/安装一次一个EXE。这将是不是每次想下载一个大文件下载时间一个exe更好。

It looks like we might have to write our own. Another option would be to write a .Net application (maybe ClickOnce) that is associated with an extension or mime type. Then the user would actually be downloading a small file from the web server that opens in the exe/ClickOnce app that tells the application what file to download. That is how the MSDN downloader works. The end user would then only have to download/install an EXE once. That would be better than downloading an exe every time they wanted to download a large file.

推荐答案

@levand:

我的实际preference,作为一个用户,在这些情况下是下载文件下载为你一个轻量级的.exe文件。

My actual preference, as a user, in these situations is to download a lightweight .exe file that downloads the file for you.

这是很多,很多网站一个因素在于。无论用户正在或的极不愿意从网站上下载.exe文件并运行它们慎之又慎。即使他们并不总是那么谨慎,不谨慎的行为的不可以的东西,我们应该鼓励作为负责任的开发商。

That's a dealbreaker for many, many sites. Users either are or should be extremely reluctant to download .exe files from websites and run them willy-nilly. Even if they're not always that cautious, incautious behaviour is not something we should encourage as responsible developers.

如果你正在沿着一个公司内部网线的东西的工作,一个.exe文件可能是一个不错的解决方案,但对于公共网站?没办法。

If you're working on something along the lines of a company intranet, a .exe is potentially an okay solution, but for the public web? No way.

@TonyB:

什么是做到这一点,而无需使用FTP的最佳方式。

What is the best way to do this without using FTP.

我很抱歉,但我不得不问为什么的要求。你的问题读取我的线沿线的什么是煮牛排没有任何肉类或热源的最佳方式? FTP是的设计的这一类的事情。

I'm sorry, but I have to ask why the requirement. Your question reads to me along the lines of "what's the best way to cook a steak without any meat or heat source?" FTP was designed for this sort of thing.

这篇关于大文件下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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