Hi,
I am using socket /TcpClient to send a file to a Server as below
NetworkStream nws = tcpClient.GetStream();
FileStream fs;
fs = new FileStream(filename, FileMode.Open, FileAccess.Read);
byte[] bytesToSend = new byte[fs.Length];
int numBytesRead = fs.Read(bytesToSend, 0, bytesToSend.Length);
nws.Write(bytesToSend, 0, numBytesRead);
On the server sise, I have this question.
What will be the byte[] size should I use to read the stream into?
Thanks