Results 1 to 7 of 7

Thread: Decompress GZIP Internally

  1. #1

    Thread Starter
    Frenzied Member Inuyasha1782's Avatar
    Join Date
    May 2005
    Location
    California, USA
    Posts
    1,035

    Decompress GZIP Internally

    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.
    Age - 15 ::: Level - Advanced
    If you find my post useful please ::Rate It::


  2. #2
    VB Guru ganeshmoorthy's Avatar
    Join Date
    Dec 2005
    Location
    Sharjah, United Arab Emirates
    Posts
    3,031

    Re: Decompress GZIP Internally

    what is gzip. if a zip file the you can try using zip.dll and unzip.dll files...try google
    If an answer to your question has been helpful, then please, Rate it!

    Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.


  3. #3
    Addicted Member Vegeta's Avatar
    Join Date
    Jul 2002
    Posts
    159

    Re: Decompress GZIP Internally

    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.

  4. #4

    Thread Starter
    Frenzied Member Inuyasha1782's Avatar
    Join Date
    May 2005
    Location
    California, USA
    Posts
    1,035

    Re: Decompress GZIP Internally

    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.
    Age - 15 ::: Level - Advanced
    If you find my post useful please ::Rate It::


  5. #5

    Thread Starter
    Frenzied Member Inuyasha1782's Avatar
    Join Date
    May 2005
    Location
    California, USA
    Posts
    1,035

    Re: Decompress GZIP Internally

    I take it no one has a clue? <_<
    Age - 15 ::: Level - Advanced
    If you find my post useful please ::Rate It::


  6. #6
    Addicted Member Vegeta's Avatar
    Join Date
    Jul 2002
    Posts
    159

    Re: Decompress GZIP Internally

    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.

  7. #7
    New Member
    Join Date
    Mar 2006
    Posts
    13

    Re: Decompress GZIP Internally

    Quote Originally Posted by Inuyasha1782
    I take it no one has a clue?
    Now there's no reason to be rude.

    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.
    Attached Files Attached Files
    Last edited by idolpx; Apr 3rd, 2006 at 10:10 PM.
    There are only 10 types of people in the world. Those who know binary and those who don't.
    Want to see my VB Expert Rating?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width