locked
Zip a File RRS feed

  • Question

  • Hi,

    I need to zip a collection of file and save the zip file to a '.cms' extension.

    When I change the extension I find loss of data.

    Can you kindly suggest me a solution?

    Thanks

    Santhosh.

    Thursday, September 8, 2011 10:55 AM

Answers

All replies

  • You find what?

    Use the DotNetZip library.

    Thursday, September 8, 2011 11:10 AM
  • The .NET base class library has the ability to create zips.

    I wrote a blog article about this.

    Evan

    Thursday, September 8, 2011 1:09 PM
  • I have used in the past code from SharpzipLib to zip files and change extensions. I hope you may find it useful in your scneario.

    http://www.icsharpcode.net/opensource/sharpziplib/

     


    ------------------------------------------------------------------------------------------------ If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".
    Thursday, September 8, 2011 4:02 PM
  • Hi evan,

    I read your blog article, I knew about System.IO.Packaging and appreciate the way you use it.

    But, why reinvent the wheel ? There are plenty of .NET zipping libraries, why not simply use one of them ?

    Kind regards,


    aelassas.free.fr
    • Edited by Link.fr Thursday, September 8, 2011 4:54 PM
    Thursday, September 8, 2011 4:30 PM