title: Windows 8 metro apps convert existing image to byte[]
body: <p>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 <code>FileOpenPicker</code> to load and convert to <code>IRandomAccessStream</code>, 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.</p>
  
  <p>I have searched a lot but found mainly examples with FileOpenPicker or using memory stream which doesn't seem to work with metro apps.</p>
  
  <p>thank you.</p>