will u help me to extract a zip file using C#code
Asked
Active
Viewed 268 times
-3
-
3Hmmm, I'll have to see about that. – BoltClock Mar 08 '11 at 08:16
-
3Yes..now what's the question? – Asha Mar 08 '11 at 08:16
-
In short? [No, not like this](http://stackoverflow.com/faq). – Bobby Mar 08 '11 at 08:16
-
8We will *help you*, not *do it for you* What do you got so far? – The Scrum Meister Mar 08 '11 at 08:17
-
@Asha: He's asking whether someone will help him :) – BoltClock Mar 08 '11 at 08:17
-
i want to extract the zip file using c#code. – RAHUL Mar 08 '11 at 08:17
-
5Use [DotNetZip](http://dotnetzip.codeplex.com/). And please, spend a little more time composing questions next time. People are more than willing to help you, but not when you ask like this. – Cody Gray - on strike Mar 08 '11 at 08:17
-
This should work! http://msdn.microsoft.com/en-us/library/system.io.compression.gzipstream.aspx – richard Mar 08 '11 at 08:18
-
@Cody Gray: But there's also [ZipStorer](http://zipstorer.codeplex.com/). – Bobby Mar 08 '11 at 08:18
-
1@RAHUL: So have you tried anything? If not, try something. – BoltClock Mar 08 '11 at 08:18
-
@BoltClock: Not if someone _can_, but if they _will_! – richard Mar 08 '11 at 08:18
-
@Richard DesLonde: Not necessarily, AFAIK this will only compress/decompress a *stream*. You'll have to figure out yourself where a file starts and where it ends. – Bobby Mar 08 '11 at 08:19
-
possible duplicate of http://stackoverflow.com/q/384955/321973 – Tobias Kienzler Mar 08 '11 at 08:19
-
@Bobby: Yeah, there are ZILLIONS of options. It's difficult to recommend one when we're not given any more information than we are here. As for my comment, I felt like actually helping, rather than posting a sassy comment. – Cody Gray - on strike Mar 08 '11 at 08:19
-
I _will_, you _will_, we _all will_ for a drink of _swill_! – richard Mar 08 '11 at 08:19
-
possible duplicate of [How to extract ZIP file in C#](http://stackoverflow.com/questions/4296918/how-to-extract-zip-file-in-c) – Rob Mar 08 '11 at 08:19
-
3This must be the fastest-growing comment thread ever on Stack Overflow. – BoltClock Mar 08 '11 at 08:19
-
Also see: [What is the best/easiest way to create ZIP archive in .NET?](http://stackoverflow.com/questions/384955/what-is-the-best-easiest-way-to-create-zip-archive-in-net) – Cody Gray - on strike Mar 08 '11 at 08:20
-
@BoltClick: It's growing and growing! – richard Mar 08 '11 at 08:21
-
@Richard: And it's... stopped. :( – BoltClock Mar 08 '11 at 08:26
-
This comment thread is expanding quicker than a zip file in a ... – Pero P. Mar 08 '11 at 08:32
-
@cpedros: Are we now coming up with the candlejack jo – Bobby Mar 08 '11 at 08:38
-
@BoltClock: I guess thhis is the end . . . :-( It was fun while it lasted. – richard Mar 08 '11 at 09:23
-
@Bobby: What is this Candlejack you spe – BoltClock Mar 08 '11 at 09:55
1 Answers
2
DotNetZip is packaged as a single DLL, a single assembly. It is fully managed code, written in C#, and provides support for reading and writing Zip archive files and streams. The main type is ZipFile, featuring methods like Add(), Extract() and Save().

CloudyMarble
- 36,908
- 70
- 97
- 130
-
-
For this Lib i have written a helper library. It provides a service for creating packages in a fast way. Service source code: https://github.com/nhu/Ostblock/blob/master/src/Ostblock.Ultilitys/Zipping/Services/DotNetZipService.cs You can check out a github: https://github.com/nhu/Ostblock – nhu Mar 08 '11 at 08:31