在后台运行大文件,从浏览器启动

时间:2021-12-26 01:23:54

Is there any reasonable method to allow users of a webapp to download large files? I'm looking for something other than the browser's built-in download dialog - the requirements are that the user initiates the download from the browser and then some other application takes over, downloads the file in background and doesn't exit when the browser is closed. It might possibly work over http, ftp or even bittorrent. Platform independence would be a nice thing to have but I'm mostly concerned with Windows.

有没有合理的方法允许webapp用户下载大文件?我正在寻找除了浏览器的内置下载对话框之外的其他东西 - 要求是用户从浏览器启动下载然后其他一些应用程序接管,在后台下载文件,并且在浏览器出现时不退出关闭。它可能适用于http,ftp甚至bittorrent。平*立性是一件好事,但我最关心的是Windows。

5 个解决方案

#1


3  

This might be a suitable use for BitTorrent. It works using a separate program (in most browsers), and will still run after the browser is closed. Not a perfect match, but meets most of your demands.

这可能是BitTorrent的合适用途。它使用单独的程序(在大多数浏览器中),并在浏览器关闭后仍然运行。不完美匹配,但满足您的大多数要求。

#2


2  

Maybe BITS is something for you?

也许BITS适合你?

Background Intelligent Transfer Service Purpose

背景智能转移服务目的

Background Intelligent Transfer Service (BITS) transfers files (downloads or uploads) between a client and server and provides progress information related to the transfers. You can also download files from a peer.

后台智能传输服务(BITS)在客户端和服务器之间传输文件(下载或上载),并提供与传输相关的进度信息。您还可以从对等方下载文件。

Where Applicable

Use BITS for applications that need to:

将BITS用于需要以下内容的应用程序:

Asynchronously transfer files in the foreground or background. Preserve the responsiveness of other network applications. Automatically resume file transfers after network disconnects and computer restarts. Developer Audience

异步传输前台或后台文件。保持其他网络应用程序的响应能力。网络断开连接并重新启动计算机后自动恢复文件传输。开发人员观众

BITS is designed for C and C++ developers.

BITS专为C和C ++开发人员设计。

Windows only

#3


0  

Try freeDownloadManager. It does integrate with IE and Firefox.

尝试freeDownloadManager。它确实与IE和Firefox集成。

#4


0  

Take a look at this: http://msdn.microsoft.com/en-us/library/aa753618(VS.85).aspx

看看这个:http://msdn.microsoft.com/en-us/library/aa753618(VS.85).aspx

It´s only for IE though.

它只适用于IE。

Another way is to write a BandObject for IE, which hooks up on all links and starts your application. http://www.codeproject.com/KB/shell/dotnetbandobjects.aspx

另一种方法是为IE编写一个BandObject,它连接所有链接并启动你的应用程序。 http://www.codeproject.com/KB/shell/dotnetbandobjects.aspx

#5


0  

Depending on how large the files are, pretty much all web-browsers all have built-in download managers.. Just put a link to the file, and the browser will take over when the user clicks.. You could simply recommend people install a download manager before downloading the file, linking to a recommended free client for Windows/Linux/OS X.

根据文件的大小,几乎所有的网络浏览器都有内置的下载管理器。只需添加一个文件链接,浏览器将在用户点击时接管。你可以简单地推荐人们安装一个下载文件之前下载管理器,链接到推荐的Windows / Linux / OS X免费客户端。

Depending on how large the files are, Bittorrent could be an option. You would offer a .torrent file, when people open them in a separate download-client, which is seperate from the browser.

根据文件的大小,Bittorrent可能是一个选项。当人们在单独的下载客户端打开它们时,你会提供一个.torrent文件,该文件与浏览器是分开的。

There are drawbacks, mainly depending on your intended audience:

有一些缺点,主要取决于您的目标受众:

  • Bittorrent is rarely allowed on corporate or school networks
  • 公司或学校网络很少允许使用Bittorrent

  • it can be difficult to use (as it's a new concept to lots of people).. for example, if someone doesn't have a torrent client installed, they get a tiny file they cannot open, which can be confusing
  • 它可能很难使用(因为它是许多人的新概念)..例如,如果有人没有安装torrent客户端,他们会得到一个他们无法打开的小文件,这可能会令人困惑

  • problems with NAT/port-forwarding/firewalls are quite common
  • NAT /端口转发/防火墙的问题很常见

  • You have to use run a torrent tracker, and seed the file
  • 您必须使用运行torrent跟踪器,并播种该文件

...but, there are also benefits - mainly reduced bandwidth-usage on the server, as people download also seed the file.

...但是,还有一些好处 - 主要是减少服务器上的带宽使用,因为人们下载也会播放文件。

#1


3  

This might be a suitable use for BitTorrent. It works using a separate program (in most browsers), and will still run after the browser is closed. Not a perfect match, but meets most of your demands.

这可能是BitTorrent的合适用途。它使用单独的程序(在大多数浏览器中),并在浏览器关闭后仍然运行。不完美匹配,但满足您的大多数要求。

#2


2  

Maybe BITS is something for you?

也许BITS适合你?

Background Intelligent Transfer Service Purpose

背景智能转移服务目的

Background Intelligent Transfer Service (BITS) transfers files (downloads or uploads) between a client and server and provides progress information related to the transfers. You can also download files from a peer.

后台智能传输服务(BITS)在客户端和服务器之间传输文件(下载或上载),并提供与传输相关的进度信息。您还可以从对等方下载文件。

Where Applicable

Use BITS for applications that need to:

将BITS用于需要以下内容的应用程序:

Asynchronously transfer files in the foreground or background. Preserve the responsiveness of other network applications. Automatically resume file transfers after network disconnects and computer restarts. Developer Audience

异步传输前台或后台文件。保持其他网络应用程序的响应能力。网络断开连接并重新启动计算机后自动恢复文件传输。开发人员观众

BITS is designed for C and C++ developers.

BITS专为C和C ++开发人员设计。

Windows only

#3


0  

Try freeDownloadManager. It does integrate with IE and Firefox.

尝试freeDownloadManager。它确实与IE和Firefox集成。

#4


0  

Take a look at this: http://msdn.microsoft.com/en-us/library/aa753618(VS.85).aspx

看看这个:http://msdn.microsoft.com/en-us/library/aa753618(VS.85).aspx

It´s only for IE though.

它只适用于IE。

Another way is to write a BandObject for IE, which hooks up on all links and starts your application. http://www.codeproject.com/KB/shell/dotnetbandobjects.aspx

另一种方法是为IE编写一个BandObject,它连接所有链接并启动你的应用程序。 http://www.codeproject.com/KB/shell/dotnetbandobjects.aspx

#5


0  

Depending on how large the files are, pretty much all web-browsers all have built-in download managers.. Just put a link to the file, and the browser will take over when the user clicks.. You could simply recommend people install a download manager before downloading the file, linking to a recommended free client for Windows/Linux/OS X.

根据文件的大小,几乎所有的网络浏览器都有内置的下载管理器。只需添加一个文件链接,浏览器将在用户点击时接管。你可以简单地推荐人们安装一个下载文件之前下载管理器,链接到推荐的Windows / Linux / OS X免费客户端。

Depending on how large the files are, Bittorrent could be an option. You would offer a .torrent file, when people open them in a separate download-client, which is seperate from the browser.

根据文件的大小,Bittorrent可能是一个选项。当人们在单独的下载客户端打开它们时,你会提供一个.torrent文件,该文件与浏览器是分开的。

There are drawbacks, mainly depending on your intended audience:

有一些缺点,主要取决于您的目标受众:

  • Bittorrent is rarely allowed on corporate or school networks
  • 公司或学校网络很少允许使用Bittorrent

  • it can be difficult to use (as it's a new concept to lots of people).. for example, if someone doesn't have a torrent client installed, they get a tiny file they cannot open, which can be confusing
  • 它可能很难使用(因为它是许多人的新概念)..例如,如果有人没有安装torrent客户端,他们会得到一个他们无法打开的小文件,这可能会令人困惑

  • problems with NAT/port-forwarding/firewalls are quite common
  • NAT /端口转发/防火墙的问题很常见

  • You have to use run a torrent tracker, and seed the file
  • 您必须使用运行torrent跟踪器,并播种该文件

...but, there are also benefits - mainly reduced bandwidth-usage on the server, as people download also seed the file.

...但是,还有一些好处 - 主要是减少服务器上的带宽使用,因为人们下载也会播放文件。