Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ZIP / UNZIP

Status
Not open for further replies.

bustell

Programmer
Mar 22, 2002
159
US
Does .NET 2.0 have any built in ability to Unzip files?

If not, are there any good free controls for unzipping files? (looking for opinions)



Pat B
 
I've not used this, but new to VB2005 is

[tt]System.IO.Compression[/tt]

but, from what I've read, it is quite straightforwardd to use.

Hope this helps.

[vampire][bat]
 
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.


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

[vampire][bat]
 
earthandfire,

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.




Pat B
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top