user632942
user632942

Reputation: 483

What would be the maximum buffer limit while calling System.Net.Sockets.NetworkStream.Write()

What would be the maximum buffer limit while calling

System.Net.Sockets.NetworkStream.Write((Byte[] buffer, Int32 offset, Int32 size)

method on a Windows 2003 32 bit machine.

Is it recommended to transfer large files using the above method.

Regards, bse

Upvotes: 1

Views: 2060

Answers (1)

Aliostad
Aliostad

Reputation: 81680

There is no limitation placed upon it so limitation is really just Int32 (around 2GB) governed by size but it is only recommended to use small buffers (less than 1MB).

Upvotes: 1

Related Questions