4D v17TCP_SendBLOB | 
            ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
                 
                
    
    
                 | 
                
			
                    
                         
    4D v17
 
TCP_SendBLOB 
                                
                                
        
 | 
                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| TCP_SendBLOB ( tcp_ID ; blobToSend ) -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| tcp_ID | Longint | 
             
         | 
        Reference to an open TCP session | |||||
| blobToSend | BLOB | 
             
         | 
        Blob to send | |||||
| Function result | Integer | 
             
         | 
        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.
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)
	Product:  4D
	Theme:  IC TCP/IP
	Number:  
        88888
        
        
        
	
	Created:  4D Internet Commands 6.7
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	4D Internet Commands ( 4D v17)
	
	
	
	
	
	
	
	
Add a comment