Quantcast
Channel: Universal Windows App – Abundant Code
Viewing all articles
Browse latest Browse all 9

How to Copy Image from Assets folder to localstorage in Windows 10 ?

$
0
0
If you want to copy a file or image from a folder to localstorage in Windows 10 , you can use the CopyAsync method of the StorageFile class to do it. How to Copy Image from Assets folder to localstorage in Windows 10 ? StorageFile file1 = await StorageFile.GetFileFromApplicationUriAsync( new Uri("ms-appx:///Assets/image1.png")); await file1.CopyAsync(ApplicationData.Current.LocalFolder, "image1.png");

Viewing all articles
Browse latest Browse all 9

Trending Articles