How to call a stored procedure from SQL*Plus with blob input parameters?
Below a sample of the SP to be called:
procedure p_dummy_proc (sessionId varchar2, accountId integer, lobData blob, oId out number) is
appo_id number;
begin
select sequenceName.nextval into appo_id from dual;
insert into dummyTab (id, session_id, account_id, lob_data)
values (appo_id,
sessionId,
accountId,
lobData)
returning appo_id
into oId;
exception
when others then
--do something
return;
end;
The lobData should be a .NET object converted in byte array, but could be anything else (e.g. a PDF document).
EDIT: specifically, I need to test the correct call for LOBs of size greater than 4000 bytes.