简体   繁体   English

Java Multipart /后下载

[英]Java Multipart/post download

I have few question related to Web technologies. 我几乎没有与Web技术有关的问题。 From my reading ant looking at Apache and Netty documents I could not figure out few things about downloading a large file with HTTP multipart/post request. 从我的阅读蚂蚁查看Apache和Netty文档的过程中,我无法了解有关使用HTTP multipart / post请求下载大型文件的一些信息。

  1. Is it possible to send HTTP request indicating request to download a file in smaller multipart (chunks)? 是否可以发送HTTP请求,指示以较小的分段(块)形式下载文件的请求?

  2. How to download large file in multipart ? 如何分段下载大文件?

Please correct me if I have not understood the 'multipart' term itself. 如果我不了解“多部分”一词本身,请纠正我。 I know lot of people have faced this problem, where application (client) downloads files in smaller portion, so when network outage happens, application does not need to download whole file from the beginning again. 我知道很多人都遇到过这个问题,其中应用程序(客户端)以较小的比例下载文件,因此当网络中断时,应用程序不需要从头开始下载整个文件。 Specially, when the file is not any media file. 特别是当文件不是任何媒体文件时。

Thanks. 谢谢。

Multipart refers to encoding multiple documents in one body, see this for the definition. 多指编码多个文档于一体,看到这个了定义。 For http, a multipart upload allows the client to send multiple documents with one post, for example uploading an image, and form fields in one request. 对于http,分段上传允许客户端通过一个帖子发送多个文档,例如上传图像和在一个请求中形成表单字段。

Multipart does not refer to downloading a document in multiple chunks. 多部分不指以多个块的形式下载文档。

You can use http ranges to restart downloading if a network outage occurs. 如果发生网络中断,可以使用http范围重新开始下载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM