Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > reg zip file

Reply
Thread Tools

reg zip file

 
 
AVL
Guest
Posts: n/a
 
      04-03-2008
Hi
I've a requirement wherein I need to unzip a zipped folder programatically
in .net.
I've tried out System.IO.Compression namespace..but it writes the content into
bytes which I dont need..I need the files to unzipped to a new folder..

HOw can I acheive it..are there any third party dlls for it..any samples
 
Reply With Quote
 
 
 
 
Mark Fitzpatrick
Guest
Posts: n/a
 
      04-03-2008
Are you trying to open a zip file or a compressed folder. These are two
different things. If it's a zip file, then you can use a third-party zip
component to open the zip file and extract whatever is in there (file or
folder, it doesn't really matter). A good free one is the SharpZipLib over
at: http://www.icsharpcode.net/OpenSource/SharpZipLib/

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression

"AVL" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi
> I've a requirement wherein I need to unzip a zipped folder programatically
> in .net.
> I've tried out System.IO.Compression namespace..but it writes the content
> into
> bytes which I dont need..I need the files to unzipped to a new folder..
>
> HOw can I acheive it..are there any third party dlls for it..any samples


 
Reply With Quote
 
 
 
 
Hans Kesting
Guest
Posts: n/a
 
      04-03-2008
AVL was thinking very hard :
> Hi
> I've a requirement wherein I need to unzip a zipped folder programatically
> in .net.
> I've tried out System.IO.Compression namespace..but it writes the content
> into bytes which I dont need..I need the files to unzipped to a new folder..
>
> HOw can I acheive it..are there any third party dlls for it..any samples


The Compression namespace can only handle single files compressed with
the "gzip" algorithm, which differs from the "zip" algorithm.

Try SharpZipLib: http://www.icsharpcode.net/OpenSource/SharpZipLib/

Hans Kesting


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Possibility to add a zip-file to a new zip-file with "add to zip" (right-click) ?? erikkie@casema.nl Computer Support 4 06-26-2006 12:18 AM
Re: Add file to zip, or replace file in zip Chris Lambacher Python 0 06-01-2006 09:39 PM
Add file to zip, or replace file in zip majj81 Python 0 05-31-2006 07:10 AM
Add file to zip, or replace file in zip abcd Python 7 05-01-2006 10:19 PM
Windows Reg Pro vs Tweak now Reg Cleaner vs Registry fix, vs RegCleaner jl Computer Support 3 05-31-2005 12:53 AM



Advertisments