Which method do you think is the "best".
System.IO.Packaging
namespace?[I can target Framework 3.5; best = easiest to design, implement, and maintain.]
I am mostly interested in why you think the chosen approach is best.
Press and hold (or right-click) the file or folder, select (or point to) Send to, and then select Compressed (zipped) folder. A new zipped folder with the same name is created in the same location.
To place multiple files into a zip folder, select all of the files while hitting the Ctrl button. Then, right-click on one of the files, move your cursor over the “Send to” option and select “Compressed (zipped) folder”.
As mentioned above, the files archived in a Zip file are usually, but not always, compressed. This saves space and also makes it easier to send them as email attachments. Zip files are also convenient for grouping data files.
I've always used SharpZipLib
Forgot the why part: Mainly because its been around for a long time. It is well documented, and has an intuitive API. Plus it's open source if you're into that type of thing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With