Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

getBlob() gives exception

 
Greenhorn
Posts: 2
  • 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.
 
Ranch Hand
Posts: 1087
Oracle Spring Java
  • 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 ]
 
author & internet detective
Posts: 40035
809
Eclipse IDE VI Editor Java
  • 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: 1087
Oracle Spring Java
  • 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
 
There are 29 Knuts in one Sickle, and 17 Sickles make up a Galleon. 42 tiny ads in a knut:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic