Below is the code to insert an image into the table.
Create a table to store the blob.
CREATE TABLE tabblobs
( id varchar2(255),
blob_col blob
);
Create a logical directory in the database.
CREATE OR REPLACE directory MY_FILES AS 'd:\images';
Create a procedure to load the blob from the physical disk using the logical
directory. The gif "ORATEST.gif" must exist in d:\images.
CREATE OR REPLACE procedure insert_img AS
flob bfile;
blob blob;
BEGIN
INSERT INTO tabblobs VALUES ( 'MyGif', empty_blob() )
RETURN blob_col INTO blob;
flob := bfilename( 'MY_FILES', 'ORATEST.gif' );
dbms_lob.fileopen(flob, dbms_lob.file_readonly);
dbms_lob.loadfromfile( blob, flob, dbms_lob.getlength(flob) );
dbms_lob.fileclose(flob);
COMMIT;
END;
/