Which is better : Storing/retrieving images on/from SQL server or in a directory on server
Posted
by
Pankaj Upadhyay
on Programmers
See other posts from Programmers
or by Pankaj Upadhyay
Published on 2011-11-13T13:09:06Z
Indexed on
2011/11/13
18:05 UTC
Read the original article
Hit count: 401
I am working on a project in Asp.net MVC and need to work with images. There is an SQL database with a Product table. Every product in the table will have it's own image. I have two ways to do this :
1) Save the image in a web directory and store the URL on database.
2) Store the image in SQL itself in binary format and then retrieve it.
Which is a better approach ? Mind you, I have no idea how second method works :-P . I will only learn this if there are merits to the second method
© Programmers or respective owner