Re: ClientPreparedQueryBindings setInt method convert int directly to byte array
Posted by: chen yi
Date: December 21, 2021 09:49PM

for example
provide a method in ResultSetImpl

public boolean isBinary() {
// do something.

then we can use as following

ResultSetImpl rs = (ResultSetImpl)stmt.executeQuery();

byte[] bytes = rs.getBytes(column);
if(rs.isBinary()) {
// parse binary bytes;
} else {
// parse text bytes

Options: ReplyQuote

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.