Compress a file and save


  • Hi

    I want to make my programm compress a file and save it inside the "ApplicationData.Current.LocalFolder" using "Windows.Storage.Compression;" class..

    How can I do it using minimum steps..

    And please dont explain in advanced. Im new to C#

    Saturday, February 8, 2014 4:19 PM


All replies

  • Take a look at the ZipArchive class for this.
    Saturday, February 8, 2014 8:19 PM
  • Hi,

    Take a look on this link:


    João Sousa (MCTS) Senior Software Engineer

    Saturday, February 8, 2014 10:25 PM
  • Then what ""Windows.Storage.Compression;"" class use for ?
    Sunday, February 9, 2014 6:07 AM
  • Windows.Storage.Compression is lower level than ZipArchive, so it requires writing more code to handle the file access, etc. Since you are a new programmer and the problem you present is easier with ZipArchive I strongly recommend using ZipArchive instead of Windows.Storage.Compression.


    Sunday, February 9, 2014 8:12 AM