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[]
.