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

Re: blobs

Thread Previous | Thread Next
From:
Dave Rolsky
Date:
August 28, 2002 20:54
Subject:
Re: blobs
Message ID:
Pine.LNX.4.44.0208282252500.8821-100000@urth.org
On 28 Aug 2002, Uri Guttman wrote:

> no, you must convert it first to a string by using storable (freeze
> method) or some other module. then you can insert it into a long field
> of type BLOB.

This shouldn't be necessary if you are storing raw image data, actually.

But I'd strongly recommend just storing filenames in the DB.  Why push and
pull such large chunks of data from the DB?  What's the point?

Better yet, simply generate filenames based on the ISBN or something
unique like that (id in the db would work too).


-dave

/*==================
www.urth.org
we await the New Sun
==================*/


Thread Previous | 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