I wish to know if there is any way to avoid to have a [Content_Types].xml file inside the zip file while using .net’s ZipPackage class.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No.
Zip Packages are not (normal) Zip files. They must follow an imposed structure and contain that
Content_Types.xmlfile in the root.ZipPackage = ZipArchive + Structure.If you want to create (and especially if you want to read) normal Zip archives you will need an extra library, there is no support in the BCL.
See SharpZipLib (GPL) and DotNetZip