I'm trying to do a application with video stream, and by now I can send only one image from the server to the client. When I try to send more than only one image at the client I receive the following error: "Parameter is not valid." at pictureBox1.Image = new Bitmap(ms);
Client side code:
while((data = cliente.receiveImage()) != null) { ms = new MemoryStream(data); pictureBox1.Image = new Bitmap(ms); ms.Close(); } Server side code (this code is repeated continuously):
servidor.sendImage(ms.GetBuffer());