How to copy *.png from appdata:/assets/images using FileSavePicker. I find this example File Save Picker - Save Edited Image (C# Metro app) but it does not work.
i have this code:
private async void OpenButton_Click(object sender, RoutedEventArgs e)
{
string path = @"\Assets\Logo.png";
StorageFolder folder = Windows.ApplicationModel.Package.Current.InstalledLocation;
StorageFile file = await folder.GetFileAsync(path);
// Show the picker
FileSavePicker savePicker = new FileSavePicker();
// Set the file that will be saved
savePicker.SuggestedSaveFile = file;
savePicker.SuggestedFileName = "Logo";
savePicker.FileTypeChoices.Add("PNG", new List<string>() { ".png" });
savePicker.PickSaveFileAndContinue();
}
but he saves the file to 0 bytes