I am trying to save an existing image (inside a button in my app) to byte[] then save it to SQLite database. I know how to use FileOpenPicker
to load and convert to IRandomAccessStream
, and I know how to save to database but I can't figure our how to convert an existing image to byte array in metro apps/windows UI.
I have searched a lot but found mainly examples with FileOpenPicker or using memory stream which doesn't seem to work with metro apps.
thank you.