Content inside zip file

How do I use the zippackage class to inspect content in a .zip file? in order to find out the type of file inside this zip file.

+2


a source to share


2 answers


Once you open the ZIP file, you can use the method GetParts

to get a collection of all the files inside. zipper closure. See PackagePart

class.



+4


a source


http://sharpdevelop.net/OpenSource/SharpZipLib/ is a good zip library for CSharp.



While you can just use something like a class DeflateStream

(http://msdn.microsoft.com/en-us/library/system.io.compression.deflatestream.aspx) that provides a compressed stream and doesn't need to handle the complexities of an archive that processes multiple files.

0


a source







All Articles