in reply to How to insert BLOB into DB2 using DBI?
Can you give us some hints of what you've tried? I would have assumed that normal replacements and binding would work - have you tried that?
Untested - but that's because I've not had a need for BLOBs yet. I have a plan for it, and I'm counting on this working ;-)my $stmt = "INSERT INTO my.table (NAME,IMAGE) VALUES(?,?)"; my $sth = $dbh->prepare($stmt); my $rc = $sth->execute('filename.jpg', $contents_of_filename_jpg);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to insert BLOB into DB2 using DBI?
by Anonymous Monk on Jan 14, 2005 at 15:38 UTC | |
by Tanktalus (Canon) on Jan 14, 2005 at 15:40 UTC | |
by rdfield (Priest) on Jan 14, 2005 at 15:46 UTC | |
by Anonymous Monk on Jan 14, 2005 at 15:47 UTC | |
by Tanktalus (Canon) on Jan 14, 2005 at 17:02 UTC |