BufferSize Property  
 

Gets and sets the size in bytes of an internal buffer that will be used during data transfers.

Syntax

object.BufferSize [= bytes ]

Remarks

Setting the BufferSize property specifies the size in bytes of an internal buffer that will be used during data transfers. Any set value greater than or equal to zero is acceptable. If the value is set to zero, then the default value of 4096 will be used. If the set value is between 1 and 255, inclusive, the buffer size will be set to 256. The maximum value is 1048576.

The speed of data transfers, particularly on uploads, may be sensitive to network type and configuration, and the size of the internal buffer used for data transfers. The default size of this buffer will result in good performance for a wide range of network characteristics. A larger buffer will not necessarily result in better performance. For example, a value of 1460, which is the typical Maximum Transmission Unit (MTU), may be optimal in many situations.

Data Type

Integer (Int32)

See Also

GetFile Method, PutFile Method