setBinaryStream(long pos) - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
rin1593638965306.ditamap
dita:ditavalPath
rin1593638965306.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantage™

Retrieves a stream that can be used to append to the end of the BLOB value that this Blob object represents.

setBinaryStream() returns a java.io.OutputStream object to which data can be written.

Syntax

setBinaryStream(long pos)

Syntax Elements

pos
The pos argument is reserved for future use.

Exceptions

If the value of the pos argument is less than 1, setBinaryStream() throws an SQLException to indicate that a Java external routine called a method with invalid parameters, setting the SQLException fields as follows.

SQLState Field vendorCode Field
“22023” 7859