Hi Guys,
I'm trying to send BI publisher report output file attachment to user Notification through Workflow by using the code :
SELECT substr(file_name,instr(file_name,'/',-1,1)+1,length(file_name))
INTO get_file_name
FROM fnd_conc_req_outputs
WHERE concurrent_request_id = v_request_id;
src_lob := BFILENAME('CONC_OUTPUT', get_file_name);
DBMS_LOB.CREATETEMPORARY(dest_lob, TRUE, DBMS_LOB.SESSION);
DBMS_LOB.OPEN(src_lob, DBMS_LOB.LOB_READONLY);
DBMS_LOB.LoadFromFile( DEST_LOB => dest_lob,
_SRC\_LOB => src\_lob,_
_AMOUNT => DBMS\_LOB.GETLENGTH(src\_lob));_
DBMS_LOB.CLOSE(src_lob);
DOCUMENT_TYPE := 'application/excel;name:=test.xls' ;
dbms_lob.copy(document, dest_lob, dbms_lob.getlength(dest_lob));

Please Help to solve the Error.Appreciated for the Solution
Thanks,
Kishore Kandula.