I'm trying to make a web application that allows the user to upload files to are oracle database. THe webserver uses the DBI::Proxy. Currently I get this error.

DBD::Proxy::st execute failed: Server returned error: Failed to execute method CallMethod: DBD::Oracle::st execute failed: ORA-01461: can bind a LONG value only for insert into a LONG column

my $dsn = "DBI:Proxy:hostname=$pghost;port=12400;dsn=DBI:Oracle:$pgdat +abase; use vars qw($conn); $conn = DBI->connect($dsn, $pguser, $pgpassword, LongReadLen=>15000000 +, AutoCommit=> 1, RaiseError=>1, PrintError=>1}); my $sql1=qq{ insert into LOCAL_FILE_BLOBS VALUES('$CWMS','$FILE_T',20,'$DES', '$org',TO_DATE('$DATE_IN','YYYY-MM-DD HH24:MI:SS'), ?,(select MAX(FILE_ID) +1 from LOCAL_FILE_BLOBS))}; print "$sql1<BR>\n"; my $sth1 = $conn->prepare($sql1);
#Thinking the line below is not being passed correctly?
$sth1->bind_param(1, $temp, {ora_field => 'FILE_DATA', ora_type =>113 }); $sth1->execute($temp);
This code is modeled after my working massinsert program I run with DBD::Oracle? Just wondering what do I have to do to make it work though DBI::Proxy? Or if it is even possible?

In reply to INSERT BLOB data though DBI:Proxy by mouser13

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.