Retrieval of XMLType data into a Java application via JDBC returns string instead of Binary in

(Doc ID 2200852.1)

Last updated on NOVEMBER 29, 2016

Applies to:

Oracle Database - Standard Edition - Version and later
Information in this document applies to any platform.


Retrieving XMLType data from an database that uses schema-based binary XML into a Java application via JDBC raises errors on the following lines of code:

BinXMLStream stream = xml.getBinXMLStream();
BinXMLDecoder decoder = stream.getDecoder();

The errors do not occur on an database with the same data.


 Upgrade from to


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms