Is it better to store images in database like blob/longblob (in my case mySQL) or just in a folder and just have a path to pic in the db?
store image in db will slower the performance. but if those images are sensitive information then it should be stored in db for security avoid from illegal access.
If you need security, you can still store images in the filesystem. Just put them outside the web root, and use PHP to send them. The method has been described here on phpbuilder many times.
Can you please give me an example how PHP can send images from outside the web-root.
I am building a photoalbum and need security. I have the rutines for storing images in the DB, but I prefer to stor images in the filesystem.