Blob reading / writing don't work
Posted by: Julio Maidanik
Date: June 09, 2016 10:12AM

Hi,
I am using connector
mysql-connector-java-5.1.38-bin.jar

Reading or writing to a Blob data through
Blob bl = Connection.createBlob()
and afterwards
PreparedStatemnet.setBlob(x, bl)
doesnt work
Neither
bl.setBinaryStream()
Nor
bl.setBytes()

Only way I have succeeded is through
PreparedStatement.setBynaryStream(x, InputStream)

My guess is that there is some undocumented way of doing it.
(I wonder whether that is done on-purpose )
@##$$$!!!

Regards
Julio Maidanik

Options: ReplyQuote


Subject
Written By
Posted
Blob reading / writing don't work
June 09, 2016 10:12AM


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.