The WRITE_RAW procedure is used to transmit binary data to a service over an open connection.
Applicability
This topic applies only to OceanBase Database in Oracle mode.
Syntax
UTL_TCP.WRITE_RAW (
c IN OUT NOCOPY connection,
data IN RAW,
len IN PLS_INTEGER DEFAULT NULL)
RETURN PLS_INTEGER;
Parameters
| Parameter | Description |
|---|---|
| c | The TCP/IP connection. |
| data | The buffer containing the data to be sent. |
| len | The number of bytes of data to be transmitted. If NULL, all data is transmitted. |
Return value
The number of bytes of data transmitted.
Considerations
- The connection must have been opened using
open_connection. - If
lenexceeds the amount of data indata, thebad argumentexception is thrown.