maintStream = client.GetStream(); Image image = (Image) binFormatter.Deserialize(maintStream); 

So I got from the client data that comes once a second. How do I insert them in a WPF image?

  • Through Source ??? - Mirdin
  • So, can Source not accept data as a link? And if I save the picture every second, and display it, then it seems to me that this is not the best option - AlexSirk
  • ImageComponent.Source = image.Source; - tCode
  • one
    Source, this is generally not a string or Uri, but an ImageSource - Mirdin
  • And what type of your Image ? Is it System.Drawing.Image or System.Windows.Controls.Image ? And why do you overtake the internal .NET class over the network, and not the picture itself? - VladD

0