develooper Front page | perl.books.workers | Postings from August 2002

blobs

Thread Next
From:
Iain Truskett
Date:
August 28, 2002 20:14
Subject:
blobs
Message ID:
20020829031241.GA15505@tarantula.tpg.com.au
Ok. I want the covers in the db.

How does one actually go about inserting and retrieving binary data from
a database?

Does one just do a:

{
  my $sth = $dbh->prepare('insert into covers (isbn,small) values (?,?)');
  $sth->execute($isbn, $imagedata);
}

Because that's not working for me.


[and I've updated the tarball:
Current code: http://ouroboros.anu.edu.au/books/books.tar.bz2
]

cheers,
-- 
Iain.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About