Reputation: 4455
I want to save and retrieve StorageFile and bitmap images into Sqlite database. and then retrieve them later on. and bitmapimage will be from thumbnail of that file. thnks in advance
Upvotes: 0
Views: 633
Reputation: 3221
As I have already told saving StorageFile and BitMapIamge to database is not a good idea. Database might choke if image file is big. Instead save path of image to db. You can load image using Path like this
myImage.Source = new BitmapImage(new Uri( "ms-appx:///Assets/WorldCupFlags/Sri_Lanka.png", UriKind.Absolute));
And StorageFile you can't store it to database.
Upvotes: 1