支持简历流动态zip文件

编程入门 行业动态 更新时间:2024-10-28 10:27:37
本文介绍了支持简历流动态zip文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

假设我的服务器上有一个MP3文件列表.我希望用户下载多个文件(他想通过任何方式下载).为此,我想要的是动态创建zip文件,并使用 dotnetzip 或 ioniczip 库将其保存到输出流中.

Suppose, I have a list of MP3 files on my server. And I want a user to download multiple files (which he wants through any means). For, this what i want is to create the zip file dynamically and while saving it into the Output Stream using the dotnetzip or ioniczip libraries.

好吧,如果zip文件过大,那不是完美的解决方案.因此,在这种情况下,服务器不支持可恢复的下载.因此,要克服这种方法,我需要在内部处理zip文件结构并提供 resume 支持.

Well, that's not the perfect solution if the zip file got heavy in size. As, in that scenario the server doesn't support resumable downloads. So, to overcome this approach, I need to handle the zip file structure internally and provide the resume support.

因此,是否有任何库(开放源代码)可用于将可恢复的动态zip 文件流直接提供给输出流.或者,如果可能的话,如果有人让我知道zip文件的结构,特别是标题内容 + 数据内容,我会很高兴.

So, is there any library (open source) which i can use to provide resumable dyanamic zip files stream directly to the Output Stream. Or, if possible I will be happy if someone let me know the structure of zip file specially the header content + data content.

推荐答案

一旦开始下载,就不应再更改ZIP文件.因为那样一来,简历将只会导致ZIP文件损坏.因此,请确保您动态创建的ZIP文件保持可用状态!

Once a download has started, you should not alter the ZIP file anymore. Because then a resume will just result in a broken ZIP file. So make sure your dynamically created ZIP file stays available!

在.NET 1.1的本文中解决了提供简历功能的问题,并且仍然有效并且可以正常工作.

The issue of providing resume-functionality was solved in this article for .NET 1.1, and it is still valid and functional.

更多推荐

支持简历流动态zip文件

本文发布于:2023-11-24 11:21:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1625001.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:简历   文件   zip

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!