Can I get a byte[] from a BitmapImage in Silverlight?
问题 I'm trying to pass some representation of an image back and forth between Silverlight and a WCF service. If possible I'd like to pass a System.Windows.Media.Imaging.BitmapImage , since that would mean the client doesn't have to do any conversion. However, at some point I need to store this image in a database, meaning the image representation must be able to convert to and from byte[] . I can create a BitmapImage from a byte[] by reading the array into a MemoryStream and using BitmapImage