jonnybuchanan has asked for the wisdom of the Perl Monks concerning the following question:
I have tried using ORA_BLOB type but it still fails.use DBI; use DBD::Oracle; open(BLOB, "/utl_dump/test.csv"); $bytes = 0; $bytes = read(BLOB, $buff, 500000); close(BLOB); my $insert_into_cache = q{ begin insert into report_cache_master (:cache_id, :blob); end; }; my $insert_stmt = $dbh->prepare($insert_into_cache); $attrib{'ora_type'} = $LONG_RAW_TYPE; $insert_stmt->bind_param(":cache_id", 7777); $insert_stmt->bind_param(":blob", $muff, \%attrib); $insert_stmt->execute;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Inserting a Long Raw into an Oracle table fails above 32512 bytes
by Limbic~Region (Chancellor) on May 15, 2008 at 18:17 UTC | |
by jonnybuchanan (Initiate) on May 16, 2008 at 16:31 UTC | |
|
Re: Inserting a Long Raw into an Oracle table fails above 32512 bytes
by moritz (Cardinal) on May 15, 2008 at 15:42 UTC | |
by Anonymous Monk on May 15, 2008 at 15:52 UTC |