create or replace procedure load_images ( p_id in number, p_file_name in varchar2 ) is v_bfile bfile := bfilename( 'IMAGES' , p_file_name); v_blob blob; v_src_offset number := 1; v_dst_offset number := 1; begin insert into noc_image_liabrary (id, image_name, image_file) values (p_id, p_file_name, empty_blob()) return images into v_blob; dbms_lob.fileopen(v_bfile, dbms_lob.file_readonly); dbms_lob.loadblobfromfile(v_blob, v_bfile, dbms_lob.getlength(v_bfile),v_src_offset,v_dst_offset); dbms_lob.close(v_bfile); commit; end; /
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE