I am reading file from ResultSet and it's required to save file into Oracle Database.
...
ResultSet rs = ...
java.sql.Blob myfile = rs.getBlob("field")
java.io.OutputStream os = ((oracle.sql.BLOB) myfile).getBinaryOutputStream();
I get get this error message
java.lang.ClassCastException
Any one have solution to this? Thanks!