You have already done half of the work.
See TcpListener class in MSDN for Server side imlementation and see TcpClient classs for client side implementation. These are wrapper on Socket class in .Net for novice network programmers of .Net. Socket has more complexities as compare to these helper classes.
Host a Listener, listening on a specific port on server and connect client to it, once connection is extablished you can send bytes read from the image to the server. You may need to send a very little extra data with original file bytes to let server know, whats name of the image, how many bytes have you sent etc.
In other words you need to send data in some format like xml tags or some other thing, that's up to you.
Best Regards,
Rizwan
|