[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GZIP + access and modify extra field usage
From: |
yperl |
Subject: |
GZIP + access and modify extra field usage |
Date: |
Sun, 10 Feb 2008 15:25:50 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 |
Hi list,
I'd like to use the "EXTRA FIELD" feature of GZIP specification to store
in the GZIP header itself,
the size of both the "compressed" and the "uncompressed" data.
The only theoritical unfinished solution I come up with is to:
1) compute the actual uncompressed file size
2) compress the file and compute its new compressed size
3) try to use these two values (i.e. compressed uncompressed sizes) in
someway
and manullay rewrote the GZIP header entirely with the EXTRA FILED set
... (don't tested yet).
Is there any way offered by ZLIB to access the GZIP header and modify it?
This will help me a lot to achieve my aim.
How is the best way to achieve that please ?
N.B: any source code will be very welcome
Thanks in advance.
cheers
Younès
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- GZIP + access and modify extra field usage,
yperl <=