Convert a bitmapimage to byte[] array for storage in sqlite database
问题 I have used filepicker to choose a photo from a local folder and have assigned that image to an image control in xaml page. Now that the image is there, I want to save it to a byte[] field in my sqlite database. I have tried numerous approaches from searching the internet but most involve a namespace that is not available (like System.Drawing) in windows 8.1 windows store app. Can you suggest a method? Here is the method I use to convert from byte[] array to a bitmap image. I just want the