GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / SetHttpTransferBufferSize Method
The new value for the packet size for FTP or HTTP transfer, for example 1024, 2048, 4096, 8192 etc.
Example





In This Topic
SetHttpTransferBufferSize Method (GdViewer)
In This Topic
Changes the packet size used for transferring data by the DisplayFromHTTP(String,String,Int32) and DisplayFromFTP(String,String,String,String,Int32) methods. The initial value is 4096.
Syntax
'Declaration
 
Public Sub SetHttpTransferBufferSize( _
   ByVal Buffersize As Integer _
) 
public void SetHttpTransferBufferSize( 
   int Buffersize
)
public procedure SetHttpTransferBufferSize( 
    Buffersize: Integer
); 
public function SetHttpTransferBufferSize( 
   Buffersize : int
);
public: void SetHttpTransferBufferSize( 
   int Buffersize
) 
public:
void SetHttpTransferBufferSize( 
   int Buffersize
) 

Parameters

Buffersize
The new value for the packet size for FTP or HTTP transfer, for example 1024, 2048, 4096, 8192 etc.
Remarks
Just to inform you that the DataReceived event is raised right after the packet of the specified size is successfully transferred.
Example
How to increase the packet size for data transfer.
'We assume that the GdViewer1 control has been properly integrated.
GdViewer1.SetHttpTransferBufferSize(8192)
'Now transfer your data.
//We assume that the GdViewer1 control has been properly integrated.
GdViewer1.SetHttpTransferBufferSize(8192);
//Now transfer your data.
See Also