I come to you today because I do not know how to copy an image from an asset to localstorage. I am trying something like:
StorageFile file = await StorageFile.GetFileFromApplicationUriAsync( new Uri("appx:///Assets/image.png")); await file.CopyAsync(ApplicationData.Current.LocalFolder, "image.png");
But this does not work at all. Anyone have an idea to do it right? Thanks for your time, best regards.
source share