Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compression > #1970 > unrolled thread
| Started by | "Angus" <nospam@gmail.com> |
|---|---|
| First post | 2013-06-08 17:47 +0100 |
| Last post | 2013-07-07 12:22 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.compression
How to compress files using zlib "Angus" <nospam@gmail.com> - 2013-06-08 17:47 +0100
Re: How to compress files using zlib Willem <willem@turtle.stack.nl> - 2013-06-10 17:34 +0000
Re: How to compress files using zlib "Angus" <nospam@gmail.com> - 2013-07-07 12:22 +0100
| From | "Angus" <nospam@gmail.com> |
|---|---|
| Date | 2013-06-08 17:47 +0100 |
| Subject | How to compress files using zlib |
| Message-ID | <rfJst.78095$MY.59455@fx08.fr7> |
I can use zlib to compress a text file. But if I compression to a file I name aaa.zip, I cannot then open it with the Windows 7 zip tool. should I be able to? Do I need to specify a specific compression type to support that?
[toc] | [next] | [standalone]
| From | Willem <willem@turtle.stack.nl> |
|---|---|
| Date | 2013-06-10 17:34 +0000 |
| Message-ID | <slrnkrc3h8.1usj.willem@turtle.stack.nl> |
| In reply to | #1970 |
Angus wrote:
) I can use zlib to compress a text file. But if I compression to a file I
) name aaa.zip, I cannot then open it with the Windows 7 zip tool. should I
) be able to? Do I need to specify a specific compression type to support
) that?
Have you tried naming it aaa.gz ?
The ZIP format has some extra headers that you need to add.
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
[toc] | [prev] | [next] | [standalone]
| From | "Angus" <nospam@gmail.com> |
|---|---|
| Date | 2013-07-07 12:22 +0100 |
| Message-ID | <BccCt.29859$FK4.22354@fx32.fr7> |
| In reply to | #1973 |
"Willem" <willem@turtle.stack.nl> wrote in message news:slrnkrc3h8.1usj.willem@turtle.stack.nl... > Angus wrote: > ) I can use zlib to compress a text file. But if I compression to a file > I > ) name aaa.zip, I cannot then open it with the Windows 7 zip tool. should > I > ) be able to? Do I need to specify a specific compression type to support > ) that? > > Have you tried naming it aaa.gz ? > The ZIP format has some extra headers that you need to add. > > > SaSW, Willem I found in the contrib folder of zlib project minizip which has a sample of how to do this. zlib is a streaming algorithm but zip is a file format and you need to assenble the zip file with correct headers as you said.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.compression
csiph-web