Search code examples
c#backupwindows-phone-8.1containersonedrive

C# Windows Phone 8.1 create file container


I want to add multiple small StorageFiles (5-60 KB each) into one big container (ca. 1-3 MB with all files), that I can afterwards upload to OneDrive in Windows Phone 8.1.

What is a good and clean way to do that? Compression and/or Encryption is optional.


Solution

  • What about LocalSettings? You may try to store your files there.

        public void Save(string key, string value)
        {
            ApplicationData.Current.LocalSettings.Values[key] = value;
        }
    
        public string Load(string key)
        {
            return ApplicationData.Current.LocalSettings.Values[key] as string;
        }