[英]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. 我想将多个小
StorageFiles
(每个5-60 KB)添加到一个大容器中(所有文件大约1-3 MB),然后可以将其上传到Windows Phone 8.1中的OneDrive
。
What is a good and clean way to do that? 有什么好方法可以做到这一点? Compression and/or Encryption is optional.
压缩和/或加密是可选的。
What about LocalSettings? 那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;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.