Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 08, 2010 11:51 AM by RonShea
May 05, 2010 07:02 AM|LINK
i have a requirement where i need to save image to database. Iam in confusion whether to save the path of image in database by saving the image in folder
or to save the binary data of image to database. Could any one suggest me which one is best in performance, security etc and why?
May 05, 2010 09:32 AM|LINK
May 05, 2010 09:50 AM|LINK
If your images are not many (like you just need to show images of some products on some page etc), then you can go on storing them in the DB.
But if you have alot of images to work with in your application, then its better that you store only their paths in the DB and store the images on file system.
Storing the images in the DB, helps securing them better than storing them on file system. But performance will certainly go low if you'll have good amount of images and store then in DB. When images are stored on file system, their caching can also be done.
Mark as answer, if it answers you..
May 05, 2010 11:31 AM|LINK
Could any one suggest me which one is best in performance, security etc and why?
You can find the answer to all these questions in this article:
May 08, 2010 11:34 AM|LINK
May 08, 2010 11:51 AM|LINK
Try below link to save your image as binary data in database and read the image from database.
Hope this will help :)
Please mark this as answer if it works for you.