Jan Chalupa
Jan Chalupa

Reputation: 897

UWP (C#) - Where and how should files be saved and accessed?

Where and how should files be saved and accessed, e.g. Images downloaded by my application and then visible from my app.

Scenario:

I give my app URLs to images placed online on random places. The app downloads them and saves them "somewhere". Saved images are used as news article images in my app. Files should be accessible in the Photos app.

Upvotes: 1

Views: 523

Answers (1)

Igor Kulman
Igor Kulman

Reputation: 16361

Save your data to ApplicationData.LocalFolder, it is intended for exactly this. But your data will not be visible outside your app. If you want to make some photos accessible in the Photos app, you need to save them to the Windows.Storage.KnownFolders.PicturesLibrary folder.

Upvotes: 2

Related Questions