0

I am using vb.net and net-sockets to establish a connection in the form of server-client. I have accomplished the task of communication between the server and the client. However, I'm having trouble for sending files and receiving them. I don't even know where to start. I tried to refer some codes. But didn't understand it quite clearly. Please help me with the sending and receiving part.

Ahmed Ashour
  • 5,179
  • 10
  • 35
  • 56
Y.S
  • 11
  • 1
  • 4
  • 1
    Start by just sending the filesize with an integer. After you can do that, send the bytes in the actual file. – the_lotus Mar 28 '17 at 13:18
  • If you're using TCP look into [**message framing**](http://stackoverflow.com/questions/37341382/c-sharp-deserializing-a-struct-after-receiving-it-through-tcp/37352525#37352525). – Visual Vincent Mar 28 '17 at 15:02

0 Answers0