locked
Upload photos into MVVM app RRS feed

  • Question

  • How to upload photos into my MVVM app using file picker, Is it different?


    • Edited by sara_yy Tuesday, December 17, 2013 12:20 PM
    Tuesday, December 17, 2013 12:13 PM

Answers

  • All of this is explained in this article. You have to read the file (in the View) and extract the bitmap, to be used as image source (in the ViewModel). If you want to store the picture in a database, you can transform it into a byte array (in the Model).
    • Marked as answer by sara_yy Tuesday, December 17, 2013 3:07 PM
    Tuesday, December 17, 2013 1:41 PM

All replies

  • All of this is explained in this article. You have to read the file (in the View) and extract the bitmap, to be used as image source (in the ViewModel). If you want to store the picture in a database, you can transform it into a byte array (in the Model).
    • Marked as answer by sara_yy Tuesday, December 17, 2013 3:07 PM
    Tuesday, December 17, 2013 1:41 PM
  • Thank You, Diederik! Helped me a lot!
    Tuesday, December 17, 2013 3:10 PM