File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

storing BLOB type in oracle db

 
nikil shar
Ranch Hand
Posts: 116
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
nikil shar
Ranch Hand
Posts: 116
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 56
Eclipse IDE Postgres Database Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 116
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic