How can we save doc or text files that are larger than 4K in Oracle 8 or 8i through LOB? Please tell me in detail...
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
Here is the code to load a file. It's straight to load the file:
-- the table you want to load to
drop table blobs; create table blobs ( id varchar2(255), theBlob blob ) /
declare l_bfile bfile; l_blob blob; begin insert into blobs values ( 'MyGif', empty_blob() ) return theBlob into l_blob; l_bfile := bfilename( 'MY_FILES', 'aria.gif' ); dbms_lob.loadfromfile( l_blob, l_bfile, dbms_lob.getlength(l_bfile) ); commit; end; /
Dig Deeper on Oracle database backup and recovery
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.