캡처 용으로 MediaCapture API를 사용하고 있습니다. 하지만 사진을 앱의 캐시에 저장하는 방법은 모르지만 기기의 폴더에 저장하는 것은 아닙니다.사진을 앱의 캐시에 저장 UWP C#
private async void btnPhoto_Click(object sender, RoutedEventArgs e)
{
// This is where we want to save to.
var storageFolder = KnownFolders.SavedPictures;
// Create the file that we're going to save the photo to.
var file = await storageFolder.CreateFileAsync("sample.jpg", CreationCollisionOption.GenerateUniqueName);
// Update the file with the contents of the photograph.
await _mediaCapture.CapturePhotoToStorageFileAsync(ImageEncodingProperties.CreateJpeg(), file);
}
사용자는 다섯 장의 사진을 캡처하고 서버에 전송하고이 장치에 사진을 저장하지 마십시오 필요가 있습니다. 어떻게 구현할 수 있습니까?