Store the pictures on the file system and picture locations in the database.
Why? Because…
- You will be able to serve the pictures as static files.
- No database access or application code will be required to fetch the pictures.
- The images could be served from a different server to improve performance.
- It will reduce database bottleneck.
- The database ultimately stores its data on the file system.
- Images can be easily cached when stored on the file system.