GdPicture.NET Reference Guide
SetHttpTransfertBufferSize Method (GdViewer)
Example 





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

Parameters

Buffersize
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.SetHttpTransfertBufferSize(8192)
'Now transfer your data.
//We assume that the GdViewer1 control has been properly integrated.
GdViewer1.SetHttpTransfertBufferSize(8192);
//Now transfer your data.
See Also

Reference

GdViewer Class
GdViewer Members
DisplayFromFTP(String,String,String) Method
DisplayFromHTTP(String,String,Int32) Method
SetFtpPassiveMode Method