Solved

Unzip a zip file  .NET framework 4.0

Posted on 2013-12-06
5
4,962 Views
Last Modified: 2013-12-06
I need to unzip  a zip file using .net framework 4.0.
Can I do this using .net classes , or use third party software

Any code samples would be helpful
0
Comment
Question by:countrymeister
5 Comments
 
LVL 19

Expert Comment

by:jss1199
ID: 39700988
See these code samples at MSDN
0
 
LVL 62

Expert Comment

by:Fernando Soto
ID: 39700993
Hi countrymeister;

.Net does support zipping and unzipping files.please see this web page for examples.

How to: Compress and Extract Files
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39701036
I wasn't aware that .NET had introduced classes for ZIP (e.g. .zip) files (thanks for that FernandoSoto!). In addition to the above, I have been using DotNetZip for a little while now, and it works very well. You can install it from NuGet.
0
 
LVL 1

Author Comment

by:countrymeister
ID: 39701076
I am using .nET 4.0, I see the examples are for .net 4.5, also the .net 4.0 library
shows an example of unzipping .gz file. I need to unzip a .ZIP file

 foreach (FileInfo fi in di.GetFiles("*.gz"))
            {
                Decompress(fi);

            }
0
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 39701134
DotNetZip has plenty of examples of usage.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now