in reply to Re: Invalid buffer?
in thread Invalid buffer?

Yes, it clearly read binary data into the variable.

Replies are listed 'Best First'.
Re^3: Invalid buffer?
by dragonchild (Archbishop) on Jan 14, 2005 at 16:26 UTC
    Try:
    use DBI qw( :sql_types ); # Lots of code here ... my $stmt = "INSERT INTO project_figures (pjfg_id, pjfg_name, pjfg_imag +e) VALUES(:1,:2,:3)"; my $sth = $dbh->prepare($stmt); $sth->bind_param( 1, 1 ); $sth->bind_param( 2, 'picture1.wmf' ); $sth->bind_param( 3, 'picture1.wmf', { db2_file => 1 ) ); my $rc = $sth->execute();

    Information found at DBD::DB2 link

    Note: I've never used DB2, so I am merely going off the documentation.

    Being right, does not endow the right to be rude; politeness costs nothing.
    Being unknowing, is not the same as being stupid.
    Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
    Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

      I get the same "invalid output or indicator buffer" message on the last line of your code.