inserting image file as blob :oracle 9i [message #117327] |
Tue, 26 April 2005 09:35 |
shiren
Messages: 2 Registered: April 2005 Location: hyd
|
Junior Member |
|
|
Hi,
I am currently doing my masters project and i have a problem while executing the procedure
declare
v_bfile BFILE;
v_blob BLOB;
begin
insert into imagetab(imagfile)
values(empty_blob())
return imagfile into v_blob;
v_bfile:=BFILENAME('IMAGEFILES','bankofwaterfall.jpg');
Dbms_Lob.fileopen(v_bfile,Dbms_Lob.File_Readonly);
Dbms_Lob.Loadfromfile(v_blob,v_bfile,Dbms_Lob.Getlength(v_bfile));
Dbms_Lob.Fileclose(v_bfile);
commit;
end;
I have created a directory imagefiles and granted read on access to scott .
But still i am getting an error saying
declare
*
ERROR at line 1:
ORA-22288: file or LOB operation FILEOPEN failed
The filename, directory name, or volume label syntax is incorrect.
ORA-06512: at "SYS.DBMS_LOB", line 504
ORA-06512: at line 9
can anyone please help me out ?
thanks in advance
shiren
|
|
|
|
|