Data type conversion: BitmapImage to binary or byte[]

Answered Data type conversion: BitmapImage to binary or byte[]

  • Friday, April 20, 2012 10:49 AM
     
     

    I need to store image in windows phone sql server ce.

    Now the data type that linq to sql supports for image is either Binary or byte[].

    Can anyone please tell me how to convert System.Windows.Media.Imaging.BitMapImage to either of the data types? I specifically need this bitmap image and not System.Drawings.Image.

    System.Windows.Media.Imaging;

    Pratiksha

All Replies

  • Friday, April 20, 2012 11:58 AM
     
     Answered
    Hi, here you are an example. Does it fit you?

    José Miguel Torres

    • Marked As Answer by haldar55 Monday, April 23, 2012 10:26 AM
    •