[thelist] Storing an image in mysql db (using perl)

deboute benjamin deboute at fr.clara.net
Mon Dec 18 15:19:37 CST 2000

At 10:57 18/12/2000 +0000, you wrote:
>Adrian Fischer wrote:
> >
> > Hi Gang,
> >
> > Is it possible to store an image in a mysql db.  Presently I am uploading
> > the images to a directory and just saving the url to the image in the 
> db.  I
> > thought it might be more econimical to have the image with the rest of the
> > record.
>Yep - you store it as a blob (Binary Large Object). This here url is a
>good place to start (with example code and everthing!)

just think of sending a mime header in concordance with the type of image 
you want to display.

deboute benjamin

More information about the thelist mailing list