I'm shocked at how much of a pain it is to find a solution to zip compress a file with a password using VB. It seems like it would be a common situation. Zlib doesn't have any decent examples, I'm spinning my wheels.. Anyone have any pointers? It's frustrating me that it's as much of a pain as it is.
SharpZipLib does allow you to set passwords, compression level, on a large number of different formats... There are examples of usage on the net. And it does work in vb even though it was programmed in C#.
One would think that with as common as Zip files are zipping and unzipping might be a part of the .Net framework.
I've looked at SharpZipLib but EDHills stated, there are no examples on the Web site or in the provided help file. I know getting picky about free code.
As I said in an earlier post it is available in .net 2 also zipping functionality is available in 2 and earlier versions via the J# Zip classes and this is VERY easy to use.
Have you used system.io.compression.gzipstream class?
Seems a little awkward to use and very primitive. It can only compress a stream and it is not possible to compress folders containing files and sub-folders.
As far as J# goes, I don't want to require j# redistributable for just zip capabilities.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.