http TransferBufferSize property
Return to Introduction  Previous page  Next page
Applies to
WinHTTP component.  

Declaration
type  
  TBufferSize = 256..MaxInt; // 2147483647 bytes maximum  
 
property ReadBufferSize: TBufferSize; // 4096 bytes by default  

Description
The TransferBufferSize property specifies the size of buffer (in bytes) for writing or reading data from the Web. For example, if TransferBufferSize is 4096 and you call Read method, the WinHTTP will read data by 4Kb blocks and trigger OnProgress event every time after downloading each 4Kb of data.  
 
tip Also the value of TransferBufferSize serves as the size of rollback chunk, which automatically read the component when resuming the downloading to local file on call of Resume method.  

See also
Read, Pause, Resume and Upload methods and OnProgress event.