Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

storing BLOB type in oracle db

 
nikil shar
Ranch Hand
Posts: 116
  • 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: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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
  • 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
  • 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
  • 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: 34095
337
Eclipse IDE Java VI Editor
  • 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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic