• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getBlob() gives exception

 
Saurabh Sawla
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whenever i try using Blob b = resultset.getBlob("col. name");

I get an UnsupportedOperationException what might be wrong in this let me know please I am using JdbcOdbcDriver in my Java Program.

Thanx in Advance.
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which driver are you using "Microsoft ODBC driver for Oracle" or "Oracle ODBC driver"

The Oracle driver has support for the BLOB and CLOB data types, while the Microsoft driver doesn't.

Shailesh
[ April 08, 2005: Message edited by: Shailesh Chandra ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33687
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Accidently posted in new thread by Saurabh:

Well Shailesh Thanks for answering but then also the problem persists do i need to use any other driver other than the JdbcOdbc Driver. If, yes can u specify any.

thanx in advance.
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

do i need to use any other driver other than the JdbcOdbc Driver. If, yes can u specify any.


do use jdbc thin driver of oracle,

I haven't use odbc driver that much , Oracle claims that its JDBC ODBC driver are 3% slower than native thin driver.

to use thin driver you need to put classes12.zip in you class path,you can find same in you installed oracle folder.
and below is the code for connection



thanks
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic