Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

insert image into blob in oracle 11g database

791246Jul 12 2011 — edited Jul 12 2011
Hi,

I have created a table to insert images/text etc.

CREATE TABLE BLOB
( SERVICENUMBER NUMBER(16)
, BARCODE BLOB
, ADDRESS VARCHAR(26)
);


Now i need to insert the image through sql query.

I tried several ways but no result:

insert into BLOB values (1234567, FILETOBLOB("D:\pic1.jpeg","server"), 'ADDRESS1');
insert into BLOB values (1234567, BLOB("D:\pic1.jpeg","server"), 'ADDRESS1');
insert into BLOB values (1234567, 'D:\\pic1.jpeg', 'ADDRESS1');


*Can any body tell me how to insert the data into blob through SQL .*


Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 9 2011
Added on Jul 12 2011
4 comments
25,354 views