SendStreamAsBlob
- Last Updated: May 15, 2020
- 1 minute read
- DataDirect Connectors
- JDBC
- IBM Db2 5.1
- MySQL 5.1
- Progress OpenEdge 5.1
- SAP Sybase 5.1
- Documentation
Purpose
Determines whether binary stream data that is less than 32 KB is sent to the database as DB2 Long Varchar for Bit Data or Blob data. Binary streams that are larger than 32 KB can only be inserted into a Blob column. The driver always sends binary stream data larger than 32 KB to the database as Blob data.
Valid Values
true | false
Behavior
If
set to true, the driver sends binary stream data
that is less than 32 KB to the database as DB2 Blob data. If the
target column is a Long Varchar for Bit Data column and not a Blob
column, the Insert or Update statement fails. The driver automatically
retries the Insert or Update statement, sending the data as Long
Varchar for Bit Data, if the pointer in the stream can be reset
to the beginning of the stream. If you know that you are sending
the binary stream data to a Blob column, setting this value improves
performance.
If set to false, the driver
sends binary stream data that is less than 32 KB to the database
as Long Varchar for Bit Data data. If the target column is a Blob
column and not a Long Varchar for Bit Data column, the Insert or
Update statement fails. The driver retries the Insert or Update statement,
sending the data as Blob data, if the pointer in the stream can
be reset to the beginning of the stream.
Default
false
Data Type
boolean