如何使用 zlib 制作 .zip 文件 [英] How to make a .zip file using zlib

查看:64
本文介绍了如何使用 zlib 制作 .zip 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读 zlib 的文档,它相当详细.但我读到这一行:

I am reading through the document of zlib, and it is fairly detail. But I read upon this line:

输出数据为 zlib 格式,不同于 gzip 或 zip 格式
http://www.zlib.net/zlib_how.html

The output data will be in the zlib format, which is different from the gzip or zip formats
http://www.zlib.net/zlib_how.html

似乎 zlib 创建的 zlib 格式与本 SO 中讨论的 zip 格式不同:

It seems that zlib creates zlib format which is not the same as zip format as is discussed in this SO:

zlib、gzip 和 zip 有什么关系?它们有什么共同点,又有什么不同?

有谁知道是否可以用 zlib 创建 zip 格式?如何?

Any body know whether it is possible to create zip format with zlib? and how?

推荐答案

正如@Jongware 提到的,你可以在 contrib/minizip 源代码库文件夹.

As @Jongware mentioned, you can find an example in the contrib/minizip folder of the source code library.

或!

您可以简单地使用 libzip.

可能重复:解压 .zip 文件的简单方法使用 zlib

这篇关于如何使用 zlib 制作 .zip 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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