Hexillion
 

MaxBufferSize property

Type: Long

Specifies the maximum number of bytes to allocate for HexTcpQuery's receive buffer. You should set this property before calling one of the query methods. The default value is the value of the MaxBufferSize registry setting, or 1,048,576 (1 MB) if the registry setting is not present.

HexTcpQuery is not designed for receiving large files--it stores everything it receives in memory before passing it back as a return value. This makes the programming interface very simple but limits the amount that can be received. If you want to receive multi-megabyte files, you should consider using a regular socket component, HTTP component, or FTP component that allows you to receive and save files in a series of chunks.

Nevertheless, if you want to receive large files with HexTcpQuery and have sufficient RAM to devote to the task, you can raise HexTcpQuery's receiving limit by setting this property.

Show site map

contact us    privacy policy    legal information