File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes storing BLOB type in oracle db Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "storing BLOB type in oracle db" Watch "storing BLOB type in oracle db" New topic
Author

storing BLOB type in oracle db

nikil shar
Ranch Hand

Joined: May 25, 2008
Posts: 116
hi all,
have seen a few examples already but most of them update/insert just the BLOB, i needed to update BLOB as well as another column.



the sql doesnt work and am sure its the BLOB which is causing the problem.

Does anyone know the correct sql for this ??


thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61432
    
  67

Please take the time to choose the correct forum for your posts. This forum is for questions on Servlets. For more information, please read this.

This post has been moved to a more appropriate forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
nikil shar
Ranch Hand

Joined: May 25, 2008
Posts: 116
thanks for moving this to the correct forum.

could this have anything to do with the version of oracle driver i am using ?? my version is 9.2
Charles 'King
Ranch Hand

Joined: Jul 05, 2009
Posts: 56

nikil shar wrote:thanks for moving this to the correct forum.

could this have anything to do with the version of oracle driver i am using ?? my version is 9.2


Can you update your db with the above sql? Test your sql outside of your coding environment and report back...
nikil shar
Ranch Hand

Joined: May 25, 2008
Posts: 116
thanks for the reply Charles. how do i test inserting a BLOB in direct sql ?? sorry my sql is not very good.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30762
    
156

nikil shar wrote:thanks for the reply Charles. how do i test inserting a BLOB in direct sql ?? sorry my sql is not very good.

You would need to read the BLOB from someplace. For example, you could have it in a file.


[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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: storing BLOB type in oracle db