reading GZipStream with VB6

Posted on 2012-09-19
Last Modified: 2012-09-25
Hi folks.

I am having to work with VB6 on a database that is shared with a .NET program.  To save space the original developer of the .NET program has used to compress some text data.

I need to unzip this in VB6 so i can integrate it into our other system.

Can anyone point me to some code/examples that does this.

Many thanks
Question by:marcwolf
    LVL 16

    Accepted Solution

    I think you're going to need a third party dll.  

    I believe a free third-party dll you might be able to use is zlib.dll (

    Not totally sure if this dll supports GZip.  But if it does, post #4 of the following forum message shows some samples how zlib.dll is used in VB6. (
    LVL 44

    Expert Comment


    Do your users already have some compression software on their systems, such as 7-zip or WinZip?  If so, you should be able to shell the command to decompress the file and then read it into your VB application.
    LVL 1

    Author Closing Comment

    Many thanks
    Just what I was looking for.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now