4D v13.2

TCP_SendBLOB

Home

 
4D v13.2
TCP_SendBLOB

TCP_SendBLOB 


 

TCP_SendBLOB ( tcp_ID ; blobToSend ) -> Function result 
Parameter Type   Description
tcp_ID  Longint in Reference to an open TCP session
blobToSend  BLOB in Blob to send
Function result  Integer in Error Code

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)

 
PROPERTIES 

Product: 4D
Theme: IC TCP/IP
Number: 88888

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D Internet Commands 6.7

 
SEE ALSO 

TCP_Listen
TCP_Open
TCP_ReceiveBLOB
TCP_Send