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.
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.
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.