Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> BFILE

BFILE

From: Ravindra B <ravindra_at_navin.com>
Date: Thu, 02 May 2002 10:38:28 -0800
Message-ID: <F001.00456846.20020502103828@fatcity.com>


Hi ,

i have a procedure to open the BFILE data.

CREATE OR REPLACE procedure openmyfile as

lob_loc bfile;

filesize number;

 lob_loc bfile:=bfilename('IMG','a.jpg');

begin

--select f_lob into lob_loc from lob_table where key_value=21;

dbms_lob.fileopen(lob_loc,dbms_lob.file_readonly);

dbms_lob.fileclose(lob_loc);

filesize:=dbms_lob.getlength(lob_loc);

dbms_output.put_line(filesize);

end;

procedure compiles w/o errors and when i execute the procedure it does w/o any errors but it doesn't open the file.

i have the procedure on the sun server and also the jpg file.i am trying to execute the procedure from oracle

client but it doens't open the file but just just o/ps the filesize.what is that i need to do to make the file open on

the client m/c.i understand that the file "a.jpg" should open.Am I missing anything?

ravi

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Ravindra B
  INET: ravindra_at_navin.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists

--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu May 02 2002 - 13:38:28 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US