Я использую API MediaCapture для захвата. Но я не знаю, как сохранить фотографии в кеш приложения, а не в папку на устройстве.Сохранение фотографий в кэш приложения 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);
}
Пользователь может захватить до пяти фотографий и отправить их на сервер и нужно не сохранять фотографии на устройстве. Как я могу это реализовать?