如何将一个jpg格式的图片存储到ORACLE表中? 字段为Blob类型,我只知道在pl/sql里怎么插入,你可以看下http://expert.csdn.net/Expert/topic/1833/1833611.xml?temp=.6520655 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 字段的属性用blob,存入过程如下:create or replace procedure insertpic is a_blob BLOB;a_bfile BFILE := BFILENAME('PICDIR','6.jpg');begin insert into pic_blf values (a_bfile) returning bilfe_column into a_bfile; insert into pic1 values ('1111',empty_blob()) returning pic into a_blob; dbms_lob.fileopen(a_bfile); dbms_lob.loadfromfile(a_blob, a_bfile, dbms_lob.getlength(a_bfile)); dbms_lob.fileclose(a_bfile); commit;end;/ 【高分求助】oracle里面blob类型另存图片的速度问题? 高手救命:http://127.0.0.1/isqlplus 打不开 Oracle 查询结果如何重复使用? JSP连接ORACLE的双机服务器不稳定呢,现在怎么做单机连接? 再起一贴问JOB的问题!高手指点! 哪位高手能告述我如何在 C# 中执行Oracle的PL/SQL语句? redhat7.2下安装oracle817和是一种合适的搭配吗? [游标变量] 将游标变量用于循环操作的问题!!! 请赐教:哪儿可以下载到SQLSERVER 2000 ? 这个SQL语句为何出错,该如何改正 下载 帮我看一下如下的存储过程,执行后不显示结果
存入过程如下:
create or replace procedure insertpic is
a_blob BLOB;
a_bfile BFILE := BFILENAME('PICDIR','6.jpg');
begin
insert into pic_blf values (a_bfile)
returning bilfe_column into a_bfile;
insert into pic1 values ('1111',empty_blob())
returning pic into a_blob;
dbms_lob.fileopen(a_bfile);
dbms_lob.loadfromfile(a_blob, a_bfile, dbms_lob.getlength(a_bfile));
dbms_lob.fileclose(a_bfile);
commit;
end;
/