Possible Duplicate:
Storing Images in DB - Yea or Nay?
I am building a system in which the users can upload their own avatars. I found that there are 2 ways of doing that - storing the image into the database or storing actual path to the image in the database and saving the image on the hard drive. I am wondering which of these ways to use. So which of them is better and which of them should I choose?
The normal way to do this is the 2nd one, it's too much strain on the DB to be storing the complete image as a BLOB, simply store the image on your webroot and the path in your DB table