Solved

Unzip a zip file  .NET framework 4.0

Posted on 2013-12-06
5
5,229 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 63

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSIS Start 2 40
VS2010 Build fails to install 14 78
insert an Jpeg/bmp image onto the visio drawing using VBA/C# 5 24
C# LINQ 5 23
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

756 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