• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

getBlob() gives exception

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 42173
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
It's a pleasure to see superheros taking such an interest in science. And this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic