SendStreamAsBlob
- Last Updated: May 30, 2024
- 1 minute read
- DataDirect Connectors
- JDBC
- 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.
Data Source Methods
public Boolean getSendStreamAsBlob()
public void
setSendStreamAsBlob(Boolean)
Default
false
Data Type
Boolean