Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello world!

Hope you can help me with some experience, I'd appreciate this very much.

I've been stuck in a problem... I need to zip files (specifically zip format) in .Net Framework 3.5 or earlier with just code (no 3rd party libraries). Whether it's VB.Net or C# it doesn't matter.
I googled and everything but it all seems to lead to 3rd party libraries and stuff.

Links are welcome as solution as well.

Thank you so much for this!
Posted
Updated 13-Aug-14 7:41am
v2
Comments
Homero Rivera 15-Aug-14 10:29am    
Well, there are no absolute answers in a problem like this. I think all answers are valid, in consideration there is no straight way to a right answer. Thank you all!

 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 13-Aug-14 13:13pm    
Interesting approach, my 5. However, it has some problems compared to 3rd-party open-source library: a bit too much of platform dependency; the performance can be compromised. So, those 3rd-party libraries have their big benefits, that's why I added my alternative answer; please see.
—SA
Homero Rivera 13-Aug-14 13:58pm    
on hold
You can use 3rd-party open-source libraries. Please see my past answers:
Extract file rar with vb.net[^],
Compare between two folders[^].

(Sorry I did not notice your "without 3rd-party libraries" part of your question title; then I would ask: why not using them. :-))

—SA
 
Share this answer
 
v2
Comments
Homero Rivera 13-Aug-14 13:19pm    
Open source is good too, as we can see what's written in there. I'm still looking at all solutions, thank you!
Sergey Alexandrovich Kryukov 13-Aug-14 13:23pm    
Please review them, and I hope you will later accept the answer formally (green "Accept" button).
—SA
Homero Rivera 13-Aug-14 13:58pm    
on hold
As you do not wan't to use 3rd party libraries and no .NET over 3.5 you have some problems...
System.IO.Compression[^] namespace have a DeflateStream and GZipStream class - since .NET 2.0 - to compressing files. As deflate[^] is the original algorithm for PKZIP (the grandfather of modern zip) so any tool capable to read zip will read it happily...It's not exactly a modern zip format in the meaning of ability, but it is compatible with, so you may go with it...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900