I recently had an interview. In the context of my mini project explanation, the interviewer asked me "where did you store the users uploaded image files?".
I replied that I used the file system rather than database. I also added that doing so wouldn't degrade the performance.
(Those images can be viewed by anyone, so there might be accesses from many users for an image).
To my surprise, he said that when your file is accessed by many, then you should use the database.
I argued with him that when the data has no concerns with atomicity, consistency, isolation, durability then why use a database.....
But he kept saying that when multiple users are accessing same file, then a database is to be used. He also said that many organizations do the same and that-why would there be a blob type in databases if storing files is not done in database.
I nodded to him; I didn't want any further debating.
So, now I'm confused. Is what he said true? Should one use a database for files when there are multiple accesses? Do many organizations do that? If yes, please explain me why is that so.