Does anyone know if it's possible to decompress GZIP internally in VB? I have been doing it via another EXE compiled in a different language because I can't find a good method internally. Thanks for the help.
Printable View
Does anyone know if it's possible to decompress GZIP internally in VB? I have been doing it via another EXE compiled in a different language because I can't find a good method internally. Thanks for the help.
what is gzip. if a zip file the you can try using zip.dll and unzip.dll files...try google
gzip is short for GNU zip. Its similar to zip but not as portable. gzip is used to compress HTTP streams.
Inuyasha1782:
I hab this problem once, when coding a webserver that supports gzip. Due to a lot of work, i gave it up.
You may have a look to http://www.gzip.org/#sources.
Download the Source. In algorithm.doc the file format and the compression methods are described.
So no one has ever made a VB function to correctly decompress a Gzip compressed file? I'm learning ++ right now, closely related to C, but translating something like that would take forever.
I take it no one has a clue? <_<
maybe you find some library or vbcode somewhere if you google for it.
the last thing you can do is to code the algorithm yourself.
Now there's no reason to be rude.Quote:
Originally Posted by Inuyasha1782
GZip is actually just Deflate with a special header.
The zlib library contains functions for doing Deflate with or without a gzip or zlib header.
http://www.zlib.net/
I made a few modifications to the zlib DLL to make the compress and uncompress functions easier to use. (You can now specify the mode of the data when calling the function.) And I wrote a VB Class wrapper because I couldn't find anything else out there to compress/uncompress gzip data in memory.
Hope this helps. :)