What is the best way to handle images?
Moderator: General Moderators
-
Genteel Beaux
- Forum Commoner
- Posts: 28
- Joined: Wed Nov 13, 2002 4:07 pm
- Location: Alabama
What is the best way to handle images?
I am working on a pretty large site. Each member of my site will have the ability to add a picture of themselves. I am currently at a crossroads. I am wondering it is better to stores images in the database or store them in a directory on the server and call them based on an unique name. Using images with databases is new to me, so excuse me if it seem elementary.
I'm not quite sure about this, I suppose it would depend on your preferences...personally I would keep them in a directory and just put the URL pointing to them in the DB but this is largely due to the fact that I don't know enough about MySQL yet to know how to put an image into it hehe...as for giving each one a unique name that should be an easy matter so again I would go this route, I am assuming of course that a user can only upload a pic if they are registered and logged in so just have it name the file either the same as the user name.jpg or .gif or whatever or name it by the users ID...either way would work pretty well I'd think...
-
Genteel Beaux
- Forum Commoner
- Posts: 28
- Joined: Wed Nov 13, 2002 4:07 pm
- Location: Alabama
- mydimension
- Moderator
- Posts: 531
- Joined: Tue Apr 23, 2002 6:00 pm
- Location: Lowell, MA USA
- Contact:
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact: