PL/SQL: Reading Blobs

From: Gerry Jacobs <gee_jay__at_yahoo.com>
Date: 11 Jun 2001 08:25:22 -0700
Message-ID: <ce2b54c8.0106110725.7809ed27_at_posting.google.com>


Hello,

how can I load a part from a blob field using PL/SQL? I tried the code below, but I can't compile it. The blob fields contain ascii and binary files.

create or replace function load_filedata(pid number, pstart number, psize number)  RETURN raw
 IS retval raw;
 BEGIN
   select dbms_lob.substr(filedata, psize, pstart) into retval from table where id=pid;    RETURN retval;
 END; Thanks in advance,

Gerry Jacobs Received on Mon Jun 11 2001 - 17:25:22 CEST

Original text of this message