G
Guest
When I do a Socket.Send(byte[]) from a client, how do I know that I've
reached the end of this data on the server? I've tried sending the length(4
bytes) at the beginning of the byte[] but I can't seem to read this correctly
(I always get a negative number). I'm basically trying to take an Image from
a picture box, I save it to a MemoryStream and then send it off, but i need
to know how much to read before i construct the buffer on the server side.
reached the end of this data on the server? I've tried sending the length(4
bytes) at the beginning of the byte[] but I can't seem to read this correctly
(I always get a negative number). I'm basically trying to take an Image from
a picture box, I save it to a MemoryStream and then send it off, but i need
to know how much to read before i construct the buffer on the server side.