how can I extract zip files in C# ???

  • Thread starter Thread starter genc ymeri
  • Start date Start date
Genc,

u can use the way as angel says but there is one other option also using J#
in C#.
J# have a library "vjslib" for zip file handling. only thing is u have to
include the ref to this lib and use the namespace "using java.util.zip;".
then u can do what ever u need. Go to given link for more information and
source code in c#, u can straight away use the code as per ur requirement.
i already implemented this in my application, its working fine.

msdn.microsoft.com/msdnmag/ issues/03/06/ZipCompression/default.aspx

/Ratan
 
Ratan said:
u can use the way as angel says but there is one other option also using J#
in C#.
J# have a library "vjslib" for zip file handling. only thing is u have to
include the ref to this lib and use the namespace "using java.util.zip;".
then u can do what ever u need. Go to given link for more information and
source code in c#, u can straight away use the code as per ur requirement.
i already implemented this in my application, its working fine.

msdn.microsoft.com/msdnmag/ issues/03/06/ZipCompression/default.aspx

You then need to make sure that the VJ# redistributable is installed on
all your client computers though - and that's considerably larger than
SharpZipLib.
 
Ratan,
Thank you very much for your tip. Actually this is the way we are going....
Jon Skeet made a god point but we are install the JV# destributable anyway
b/c my C#program compiles Java code.

Glad I got someone to think the same as we did ...... :)

Thaks to you all :) :)


PS:
I got some problems with SharpZipLib. Sometime the same program create zip
files with 0 Kb. I noticed that other programmers did occur that too. Plus I
didn't get any wasy way to zip an entire folder with its subfolders and its
files.....
 
Out of interest, have you reported this to the authors? I'm sure they'd
be happy to fix a bug if you can help them find it.

I did report it yesterday....

I would be surprised if using VJ# made this easier - I don't remember
any java.util.zip classes/methods which made this particularly simple.
:(

Not that it's that hard to recurse using DirectoryInfo and FileInfo...

yeah,,,,

Thanks :)
 
genc ymeri said:
Thank you very much for your tip. Actually this is the way we are going....
Jon Skeet made a god point but we are install the JV# destributable anyway
b/c my C#program compiles Java code.

Glad I got someone to think the same as we did ...... :)

If you're using the VJ# library anyway, then yes, it makes sense to use
that. SharpZipLib started out as just a reimplementation of
java.util.zip in C#, I believe.
I got some problems with SharpZipLib. Sometime the same program create zip
files with 0 Kb. I noticed that other programmers did occur that too.

Out of interest, have you reported this to the authors? I'm sure they'd
be happy to fix a bug if you can help them find it.
Plus I didn't get any wasy way to zip an entire folder with its
subfolders and its files.....

I would be surprised if using VJ# made this easier - I don't remember
any java.util.zip classes/methods which made this particularly simple.
Not that it's that hard to recurse using DirectoryInfo and FileInfo...
 
genc ymeri said:
I did report it yesterday....

Excellent. I'll be interested to see whether there are any new releases
soon. (We actually only use the gzip functionality here, but it's very
handy for that.)
 
Back
Top