Results 1 to 8 of 8

Thread: Pure VB zip library?

  1. #1

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Pure VB zip library?

    There is a pure VB class to save images as JPEG without any dependencies. I'm hoping something like that exists for zipping/compressing data.

    I don't need to read .zip files or extract them, just compress. I'm not sure what algorithm is usually used. LZW? Or something?

    I've found a few for RLE, LZW (or whatever it's called), Huffman, etc.

    Can anyone recommend a good one to use? I really want something close to the compression ratio of WinZip for text and images. And I don't have VB at this computer so I can't test any of them right now.

    I just want to compress some data (sometimes text, sometimes binary image data) before transmitting. And I don't want to use the ZLib or any other DLL. And I don't want to have to save to file first.

  2. #2
    Fanatic Member technorobbo's Avatar
    Join Date
    Dec 2008
    Location
    Chicago
    Posts
    864

    Re: Pure VB zip library?

    Check out this PSC article http://www.planet-source-code.com/vb...&lngWId=-1#zip
    It's got all the code you need
    Have Fun,

    TR
    _____________________________
    Check out my Alpha DogFighter2D Game Demo and Source code. Direct Download:http://home.comcast.net/~technorobbo/Alpha.zip or Read about it in the forum:http://www.vbforums.com/showthread.php?t=551700. Now in 3D!!! http://home.comcast.net/~technorobbo/AlPha3D.zip or read about it in the forum: http://www.vbforums.com/showthread.php?goto=newpost&t=552560 and IChessChat3D internet chess game

  3. #3

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Pure VB zip library?

    I've seen that and it's only for NT/XP.

  4. #4
    Fanatic Member technorobbo's Avatar
    Join Date
    Dec 2008
    Location
    Chicago
    Posts
    864

    Re: Pure VB zip library?

    I wrote a decompress program for a guy using that api and he had Vista. It worked fine. Have you tried it?
    Have Fun,

    TR
    _____________________________
    Check out my Alpha DogFighter2D Game Demo and Source code. Direct Download:http://home.comcast.net/~technorobbo/Alpha.zip or Read about it in the forum:http://www.vbforums.com/showthread.php?t=551700. Now in 3D!!! http://home.comcast.net/~technorobbo/AlPha3D.zip or read about it in the forum: http://www.vbforums.com/showthread.php?goto=newpost&t=552560 and IChessChat3D internet chess game

  5. #5

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Pure VB zip library?

    Yeah Vista uses NT. I mean for older operating systems like Windows 98.

    I found a few on there but unfortunately, can't test any of them right now, and was wondering if anyone had one lying around that they use or know of a good one online.

  6. #6
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Pure VB zip library?

    How about this... works for win 98... and is FREE

    http://www.softlist.net/program/bw_z...-download.html

    also check out the section "Unziping file" right at the bottom in the below mentioned link...

    http://www.completelyfreesoftware.co...ime_files.html

    Edit
    Another interesting concept using c#. i am not sure if this will work in W98

    http://www.codeproject.com/KB/cs/com...hellapics.aspx

    This looks promising as it has been tested for Win 98. Source code at the bottom of that link...
    http://home.scarlet.be/~tsc08989/sawzip.htm
    Last edited by Siddharth Rout; Feb 26th, 2009 at 12:45 AM.
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  7. #7

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Pure VB zip library?

    Thanks, but like I said, I don't want to add any dependencies/use any DLLs (or OCXs)......

  8. #8
    Cumbrian Milk's Avatar
    Join Date
    Jan 2007
    Location
    0xDEADBEEF
    Posts
    2,448

    Re: Pure VB zip library?

    Don't know if this will help, it's my interpretation of a Huffman entropy encoder/decoder (possibly quite different from a standard Huffman encoder)

    It's best suited for text typically yielding an output of < 60% of the input. It's not suitable for small strings and most images

    It might not be that great compression wise but it is pure vb (no API) and it's fairly fast.

    I'm sure I've seen a VB version of LZ77 on psc at some point.

    What do your images typically look like? Random or like photos or like

    Edit: Just remembered something re strings. The main reason why small strings compress badly is the inclusion of the dictionary. A standard dictionary can be used for all strings meaning is does not have to be included.
    Attached Files Attached Files
    Last edited by Milk; Feb 26th, 2009 at 01:55 PM.

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