|
Posted by Norman Peelman on 01/13/06 03:24
"Don Freeman" <freemand@sonic.net> wrote in message
news:43c559b4$0$95994$742ec2ed@news.sonic.net...
>
> "Jakob Rohde" <jakob.rohde@gmail.com> wrote in message
> news:43c42927$0$38669$edfadb0f@dread12.news.tele.dk...
> > Hi,
> >
> > I have Googled and searced in various other ways, but I have been unable
> > to find usable information about how to store and retrieve image files
in
> > a MySQL-database using PHP5.
> >
> I was going to do this when I read in a couple of sources that it is
better
> to use the file system to store the image and just keep the location in
the
> db. Which is what I did, and it works very well but now am wondering if
> there are some advantages to using the db to store the image. What was
your
> deciding point?
>
> Thanks,
> Don
> --
> Ever had one of those days where you just felt like:
> http://cosmoslair.com/BadDay.html ?
>
>
I store images in MySQL because:
1: I find it very easy to do...
2: No need to worry about the db being out of sync with the filesystem (a
filename in the db that points to a file/image that no longer exists, etc.)
3: Easy backups (they contain everything in one file)... AND the backups
zip up really tight for archival storage.
Norm
--
FREE Avatar hosting at www.easyavatar.com
Navigation:
[Reply to this message]
|