Streaming Binary Data to Oracle DB BLOB

sojiro_at_twcny.rr.com
Date: 02/16/05


Date: 16 Feb 2005 08:05:01 -0800

Hello,

I'm using Perl to insert a binary file into a BLOB field in an Oracle
database. I know it is possible to insert the data into the database by
opening and reading the file into a variable first then inserting it
into the database. My question is can I stream that data from the file
to the database and skip the variable in between? I have tried things
similar to the following but they have not seem to work.

my $FH
open(FH, "binary.file");
$sth->bind_param(1, \$FH, {ora_type => ORA_BLOB});
close(FH);

This yeilds the following error...

Can't bind a reference (SCALAR(0x821c0b8))

I greatly appreciate any suggestions.



Relevant Pages

  • Streaming Binary Data to Oracle DB BLOB
    ... I'm using Perl to insert a binary file into a BLOB field in an Oracle ... I know it is possible to insert the data into the database by ... opening and reading the file into a variable first then inserting it ...
    (perl.dbi.users)
  • Streaming Binary Data to Oracle DB BLOB
    ... I'm using Perl to insert a binary file into a BLOB field in an Oracle ... I know it is possible to insert the data into the database by ... opening and reading the file into a variable first then inserting it ...
    (perl.dbi.users)
  • Streaming Binary Data to Oracle DB BLOB
    ... I'm using Perl to insert a binary file into a BLOB field in an Oracle ... I know it is possible to insert the data into the database by ... opening and reading the file into a variable first then inserting it ...
    (perl.dbi.users)
  • Re: What so special about PostgreSQL and other RDBMS?
    ... That's exactly the link the licence agreement for the database points to when it ... comes to what wecan expect for paying support. ... > "Oracle may provide additional releases or versions of its programs ... If the requirements are volatile I'd do a long term contract detailing what ...
    (comp.lang.php)
  • A cool DBA job wanted
    ... 7, Oracle 6, Sybase, SQL Server ... Proposed proactive database monitoring through ... strategies to administer remote Oracle databases ... Trained installation and support personnel in basic ...
    (comp.databases.oracle.server)