hassanmuneer wrote:But my question is if we save the images in DB or in file system we use the same resources of the system ( i mean storage).
no, you always use slightly more resources if you store them in a database: there's the overhead of database tables, indexes, etc. it's also slower to fetch images from a database, you can't get the web server to cache the images in memory (done automatically if the image is served from a local disk), etc. in other words, more cpu resources to serve an image.
The senario is if i want to host my application is some US based server and use the database for storing the images it consume the same space as OS file system and what do you mean by heavy database.
who said anything about a heavy database?
DB are meant to store the information not for the meta data information.
if you have to store a billion images (not unimaginable -- see sites like livejournal.com where paid users can upload hundreds of avatar-type pictures), you really don't want to store all that in a database.
besides, if you store the path to a file in the db, you're storing information: metadata is information.