getBinaryStream() - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
qwr1571437338192.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantage™

Purpose

Retrieves the XML value designated by this SQLXML instance as a stream.

Syntax

InputStream getBinaryStream()
                       throws SQLException

Return Value

A stream containing the XML data.

The bytes of the input stream are interpreted according to the XML 1.0 specification.

Usage Notes

The behavior of this method is the same as ResultSet.getBinaryStream() when the designated column of the ResultSet has a type java.sql.Types of SQLXML.

The SQL XML object becomes unreadable when this method is called and may also become not writable depending on the implementation.

Exceptions

Throws SQLException if there is an error processing the XML value. An exception is thrown if the state is not readable. A database specific code “9752 (ERRUDFJAVAXML) <Error retrieving XML value in getBinaryStream>” is returned.