aspose file tools*
The moose likes JDBC and the fly likes getBlob() gives exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "getBlob() gives exception " Watch "getBlob() gives exception " New topic
Author

getBlob() gives exception

Saurabh Sawla
Greenhorn

Joined: Apr 08, 2005
Posts: 2
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

Joined: Aug 13, 2004
Posts: 1081

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 ]

Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30516
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1081


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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getBlob() gives exception