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

Teradata Vantage™ - SQL External Routine Programming

Advanced SQL Engine
Teradata Database
Release Number
Release Date
April 2020
Content Type
Programming Reference
Publication ID
English (United States)

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


The pos argument is reserved for future use.

Return Value

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


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