Reputation: 707
i am beginner developer with c# I trying to develop client server capture winform application in this app image captured from desktop of client and then put in to temporary file and then send it to server with socket .(I Said I'm Beginner !)...
i have a question . may i put captured image to an object and sending this object directly with socket to server ?
i know data must be put into byte[] array for transferring but i can't write code for this idea . may you help me in this problem ?
thanks a lot .
Upvotes: 0
Views: 111
Reputation: 1456
Yes, you can send this image from client to server by writing this to the networkstream as byte[].
Here is an example on how to send this binary "message" (read: image) from client to server using sockets.
http://www.codeproject.com/Articles/12286/Simple-Client-server-Interactions-using-C
Upvotes: 1