下载一个大文件! [英] downloading a large file!

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

问题描述

大家好,


快速提问,在我的程序中我需要下载一个大文件(100MB)

文件。我想知道如何在段中执行此操作,以便如果

下载失败,我将能够从

下载失败的地方下载。 br />

谢谢。

Hi All,

Quick question, in my program I need to download a large file (100MB)
file. I would like to know how can I do this in segments so that if the
download fails, I will able to download from the the place where the
download fails.

Thanks.

推荐答案




DBC用户 <分贝***** @ gmail.com>在消息中写道

news:11 ********************* @ g44g2000cwa.googlegro ups.com ...
Hi,

"DBC User" <db*****@gmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
大家好,

快速提问,在我的程序中我需要下载一个大文件(100MB)
文件。我想知道如何在分段中执行此操作,以便如果下载失败,我将能够从
下载失败的地方下载。
Hi All,

Quick question, in my program I need to download a large file (100MB)
file. I would like to know how can I do this in segments so that if the
download fails, I will able to download from the the place where the
download fails.




为此,你需要控制传输的两端,是吗?

如果是这样你必须在请求中发送偏离
文件,然后照常获取字节,并将它们附加到

文件。

-

Ignacio Machin,

ignacio.machin at dot.state.fl.us

佛罗里达州交通局



For this to work you need to control both ends of the transmition, do you?
if so you would have to send in the request the offset from the beginning of
the file, after that is as usual, get the bytes, and append them to the
file.
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


我相信你可以使用HTTP。 1.1规范中有一个

条款(以我认为的标题形式),你可以设置为

表示从哪里开始下载。通过这种方式,您可以指示要从哪个
字节开始,然后只需附加到您的文件。


希望这会有所帮助。

-

- Nicholas Paldino [.NET / C#MVP]

- mv*@spam.guard.caspershouse.com


" DBC User" <分贝***** @ gmail.com>在消息中写道

news:11 ********************* @ g44g2000cwa.googlegro ups.com ...
I believe you can use HTTP for this. The 1.1 specification has a
provision in it (in the form of a header I believe) which you can set to
indicate where to start the download from. This way, you can indicate which
byte to start at, and then just append to your file.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"DBC User" <db*****@gmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
大家好,

快速提问,在我的程序中我需要下载一个大文件(100MB)
文件。我想知道如何在段中执行此操作,以便如果下载失败,我将能够从
下载失败的地方下载。

谢谢。
Hi All,

Quick question, in my program I need to download a large file (100MB)
file. I would like to know how can I do this in segments so that if the
download fails, I will able to download from the the place where the
download fails.

Thanks.



Hello Nicholas Paldino [.NET / C#MVP],
Hello Nicholas Paldino [.NET/C# MVP],
我相信你可以使用HTTP这个。 1.1规范中有一个
条款(我认为是标题的形式),你可以设置它来指示从哪里开始下载。这样,您可以指示从哪个字节开始,然后只是附加到您的文件。

希望这会有所帮助。
I believe you can use HTTP for this. The 1.1 specification has a
provision in it (in the form of a header I believe) which you can set
to indicate where to start the download from. This way, you can
indicate which byte to start at, and then just append to your file.

Hope this helps.




此标题称为范围。使用它,可以指定要检索的一个或多个

字节段。


干杯,

-

Joerg Jooss
ne********@joergjooss.de


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

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