我想将个人资料图片保存在本地存储的文件中。
使用此代码检索 IRandomAccessStreamWithContentType 但我不明白如何将其保存在磁盘上。
var contactPicker = new Windows.ApplicationModel.Contacts.ContactPicker();
contactPicker.CommitButtonText = "Select";
var contact = await contactPicker.PickSingleContactAsync();
using (IRandomAccessStreamWithContentType stream = await contact.GetThumbnailAsync())
{
//Save stream on LocalFolder
}