Home  |  Linux  | Mysql  | PHP  | XML
From:Iain Truskett Date:Wed Aug 28 21:12:41 2002
Subject:blobs
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.
Navigate in group perl.books.workers at sever nntp.perl.org
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants