TCP_SendBLOB

4D - Documentation   Français   English   German   Japanese   4D Internet Commands, Theme List   4D Internet Commands, Alphabetical List   Back   Previous   Next

version 6.7


TCP_SendBLOB (tcp_ID; blobToSend) Integer

ParameterTypeDescription
tcp_IDLongintReference to an open TCP session
blobToSendBLOBBlob to send
Function resultIntegerError Code

Description

The TCP_SendBLOB command sends data to the TCP session designated by tcp_ID. This command performs the same action as TCP_Send, except that it will send a BLOB instead of a text, which allows bypassing the 32K text limitation. Using this command, you can send binary objects.

tcp_ID is a long integer reference to an open TCP session as established with either the TCP_Open or TCP_Listen command.

blobToSend is the BLOB to be sent to the TCP session referenced by tcp_ID.

Note regarding Platform Independence: If you exchange BLOBs between Macintosh and PC platforms, it is up to you to manage byte swapping issues if necessary.

Example

This example will send a BLOB to the TCP session:

   C_BLOB($Blob_Send)
   C_TEXT(v_Txt_Send)
   TEXT TO BLOB(v_Txt_Send;$Blob_Send; Text without length;*)
   $err:=TCP_SendBLOB (v_tcp_ID;$Blob_Send)

See Also

TCP_Listen, TCP_Open, TCP_ReceiveBLOB, TCP_Send.


4D - Documentation   Français   English   German   Japanese   4D Internet Commands, Theme List   4D Internet Commands, Alphabetical List   Back   Previous   Next