Home » SQL & PL/SQL » SQL & PL/SQL » update blob column with images from a directory (oracle 10g)
update blob column with images from a directory [message #539587] Tue, 17 January 2012 04:58 Go to next message
kiran111
Messages: 49
Registered: October 2011
Member
Hi frends,

need help

i have to update the blob column in a table with new image.

we have a table with 10 columns in which one column is 'image' as BLOB data type, and one more column with "image_name " and has more than 1000 rows.
I have a 300 images which I need to update in "image" column .
I need to match the given images name with "image_name" column, if row is present in the table than update the "image" column with the given image.
I search and found almost same code to insert the image in new table with a procedure, I mean code is to call the procedure, ( by passing image name and image directory)
Is there any way that we will check all the image given in the directory, if that image_name is present in the table then update the image
Can some one provide me a sample code for this
Re: update blob column with images from a directory [message #539594 is a reply to message #539587] Tue, 17 January 2012 05:31 Go to previous messageGo to next message
Michel Cadot
Messages: 68757
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
As a starter:
http://www.orafaq.com/forum/mv/msg/172218/512087/102589/#msg_512087

Regards
Michel
Re: update blob column with images from a directory [message #539603 is a reply to message #539594] Tue, 17 January 2012 06:05 Go to previous message
kiran111
Messages: 49
Registered: October 2011
Member
ok Michel,
I will have a look.

thanks
Previous Topic: SQl query
Next Topic: getting error please help
Goto Forum:
  


Current Time: Tue May 20 18:57:20 CDT 2025