htrobert has asked for the wisdom of the Perl Monks concerning the following question:
open(INFILE,"X:\\\\ongoing\\bioinformatics\\db2\\image\\picture1.wmf") +; binmode(INFILE); $img_data = <INFILE>; close(INFILE); my $stmt = "INSERT INTO project_figures (pjfg_id, pjfg_name, pjfg_imag +e) VALUES(?,?,?)"; my $sth = $dbh->prepare($stmt); my $rc = $sth->execute(1,'picture1.wmf', $img_data);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Invalid buffer?
by ghettofinger (Monk) on Jan 14, 2005 at 17:40 UTC | |
|
Re: Invalid buffer?
by dragonchild (Archbishop) on Jan 14, 2005 at 16:08 UTC | |
by htrobert (Novice) on Jan 14, 2005 at 16:16 UTC | |
by dragonchild (Archbishop) on Jan 14, 2005 at 16:26 UTC | |
by htrobert (Novice) on Jan 14, 2005 at 16:32 UTC |