拉链在GzipStream超过1文件 [英] zip more than 1 file in GzipStream

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

问题描述

我怎么能在一个GZipStream拉链超过1个文件?我有3个XML文件,我想将它们压缩成一个文件名为.gz,当我解我应该得到所有3个独立的文件。

How can I zip more than 1 file in a GZipStream? I have 3 xml files and I want to zip them into one .gz file and when I decompress I should get all 3 separate files.

我怎样才能做到这一点?

How can I do this?

推荐答案

gzip的仅设计容纳一个文件。你需要使用gzip压缩之前整理他们在其他容器中。

gzip is only designed to hold a single file. You will need to collate them in some other container before gzipping them.

这篇关于拉链在GzipStream超过1文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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