Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Reading Blob Field with Java
Fri, Feb 14 2014 2:47 PMPermanent Link

Ney

I tried to get the data from a Blob field with Java via JDBC:ODBC Driver but, i get an UnsupportedOperationException when using the "getBlob()" method.

Code Extract:
ResultSet rs = st.executeQuery("select fx_costos as b from sfixed");            
           while(rs.next()){
               Blob blob = rs.getBlob("b");

Error:
java.lang.UnsupportedOperationException
   at sun.jdbc.odbc.JdbcOdbcResultSet.getBlob(JdbcOdbcResultSet.java:4412)

If someone know how to read the data, help me please.
Tue, Feb 18 2014 11:10 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ney,

<< I tried to get the data from a Blob field with Java via JDBC:ODBC Driver
but, i get an UnsupportedOperationException when using the "getBlob()"
method. >>

If you're getting an "unsupported operation" error, then it's coming from
the JDBC driver, not the DBISAM ODBC Driver:

http://www.coderanch.com/t/302648/JDBC/databases/exception-retrieveing-Blob

Tim Young
Elevate Software
www.elevatesoft.com
Image