VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

VBZLib GZip Compress/Uncompress In Memory using Modified ZLib DLL

James Johnston  (3 Submissions)   Libraries   Advanced   Wed 3rd February 2021

This is a class wrapper and a modified version of the ZLib DLL (https://www.zlib.net). ZLib is used for compressing/uncompressing data using the famous Deflate algorithm.
It will also read/write the zlib and gzip headers from/to the data when compressing/uncompressing. I modified the standard zlib compress/uncompress function calls to allow you to pass a parameter to specify the header type of the data. Either zlib, gzip, auto or deflate with no header.
You can download "vbzlib1.dll" from the following URL.
https://www.techknowpro.com/vb/vbzlib/vbzlib1.dll
I
needed this because I couldn't find any other sample code to uncompress a string containing gzip data. Specifically when downloading gzip Content-Encoded data from a web server.
With this you can both compress and uncompress string data easily specifying what ever header you like.
I hope this helps others. I did alot of searching and didn't find anything like it for VB.
If you like or use this please vote for me. :)

Rate VBZLib GZip Compress/Uncompress In Memory using Modified ZLib DLL (16(16 Vote))

Download VBZLib GZip Compress/Uncompress In Memory using Modified ZLib DLL

VBZLib GZip Compress/Uncompress In Memory using Modified ZLib DLL Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters