G
genc ymeri
Hi,
How can I zip/unzip files in C# ????
How can I zip/unzip files in C# ????
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
be happy to fix a bug if you can help them find it.
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: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 ......![]()
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.....
genc ymeri said:I did report it yesterday....