2

Possible Duplicate:
WPF Image to Byte[]
Load byte[] into a System.Windows.Controls.Image at Runtime

How do you convert a system.windows.controls.image object to byte array? This type is non-serializable hence you cannot use a BinaryFormatter to serialize it into a MemoryStream which is castable to a byte[].

Community
  • 1
  • 1
TheWolf
  • 1,675
  • 4
  • 22
  • 34
  • 3
    Why people always want to turn *controls* into byte arrays into is beyond me: [WPF Image to Byte Array](http://stackoverflow.com/questions/553611/wpf-image-to-byte) (Voted to close but misclicked, the link in this comment should the correct duplicate) – H.B. Nov 07 '11 at 23:29

0 Answers0