It was a tough couple of days trying to get data out of the SQL Server CE DB. After referring to many articles, found a way to convert the System.Data.Linq.Binary type to a byte array, and in turn convert it to the intended System.Windows.Controls.Media.Image data type by using an intermediary BitMapImage data type.
But I couldn't test this since I was faced with another issue of setting up a connection string to the DataContext class that was generated by the SQL Server CE Toolbox component. What I have learnt is, when a password is used upon the DB, it uses some encryption,and the contents of it cannot be viewed through Visual Studio 2010 or any other Desktop DB extraction tool. This was annoying. Removing the password did give relief to some extent, yet database was not found kind of an exception occurred. After several twists here and there, I was able to see my food menu images on the simulator around 3.00am. Yippee...!
Yet I thought of writing up an article later about the different kinds of issues and achievements made in making a connection to the DB and retrieving images and etc, since there aren't many content on the web that address these issues in detail.
Looking forward to finish the Menu Selection page tonight.










