I have to display images from the database, but am unable to convert the byte stream into a image presentable format.
I referred to WP7 project, but not able to do the same stuff here..
byte[] blob;
blob = TableName.Table_Image;
MemoryStream memStream = new MemoryStream(blob);
WriteableBitmap bimg = PictureDecoder.DecodeJpeg(memStream);
Can anyone help?
After a lot of search, this link helped me.
http://canbilgin.wordpress.com/2012/06/06/how-to-convert-byte-array-to-irandomaccessstream/#comment-89
Hope this is useful.
Thanks.