locked
Compress a file and save

    Question

  • 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

Answers

All replies

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

    Take a look on this link:

    http://code.msdn.microsoft.com/windowsapps/Compression-sample-9d57900f


    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.

    --Rob

    Sunday, February 9, 2014 8:12 AM
    Moderator