www.GetXFactor.com

Leading Technology, Science,
Agriculture News and information


Part of the Identityscape.com network...

getxfactor.com jmoodmusic.com smartbusinesschoices.com mintdepot.com lowfaresalways.com evangelicalview.com shoppingpodder.com soproudlywehail.com webnews.ws currenthumor.com

 

 

how to get whole gzip package and decompress it
   Science and Technology news... Forum Index -> Compression Forum  
View previous topic :: View next topic  
Author Message
Guest







PostPosted: Thu Jul 17, 2008 7:33 am    Post subject: how to get whole gzip package and decompress it Reply with quote

hi,all
My vc6 application of wininet need uncompress the gzip package
get from website. I get the gzip package and save as 'xxx.gz' ,and
then unzip with winrar application ,but I get two prompt error.
1.unpredictor compress file trailer
2.crc error

there are some question
1. My gzip package is not intact,and http-header has no chunked.
after readstring finished i get the first fragment of the gzip . i
sleep the app and then readstring again.but i get nothing. how to get
the next fragment of gzip file.


2. This is the first 10 byte of the gzip filebut the gzip file
'xxx.gz' format scratch my head over.


1f 8b 08 7f 39 f4 63 d8 b6 c4


byte 4 is the FLG ,
bit 0 FTEXT
bit 1 FHCRC
bit 2 FEXTRA
bit 3 FNAME
bit 4 FCOMMENT
bit 5-7 what are these FLGs


what is the mean of byte 9 (b6) and the byte 10 (c4)


thanks


victor zou
Back to top
Mark Adler
Guest






PostPosted: Thu Jul 17, 2008 3:56 pm    Post subject: Re: how to get whole gzip package and decompress it Reply with quote

On Jul 17, 12:33 am, szt...@gmail.com wrote:
[quote]I get the gzip package and save as 'xxx.gz' ,and
then unzip with winrar application ,but I get two prompt error.
[/quote]
That gzip package assumes that you already have gzip! (It ends
in .gz, which is the compressed gzip extension.) A bit of a
Catch-22. Look here for the gzip source in other formats, including
uncompressed tar:

http://ftp.gnu.org/gnu/gzip/

Mark
Back to top
Guest







PostPosted: Thu Jul 17, 2008 4:40 pm    Post subject: Re: how to get whole gzip package and decompress it Reply with quote

thank Mark, sorry for my mistake

the first 10 byte is not the list in the question.

i am not readstring from website in bytestream .so .i have lost some
byte like "00 00 00 00"
Back to top
Display posts from previous:   
   Science and Technology news... Forum Index -> Compression Forum  
Page 1 of 1
All times are GMT

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum