Store user profile pictures on disk or in the database?
问题 I'm building an asp.net mvc application where users can attach a picture to their profile, but also in other areas of the system like a messaging gadget on the dashboard that displays recent messages etc. When the user uploads these I am wondering whether it would be better to store them in the database or on disk. Databse advantages easy to backup entire database and keep profile content/images with associated profile/user tables when I build web services later down the track, they can just