Click here to Skip to main content
11,644,731 members (61,004 online)
Rate this: bad
Please Sign up or sign in to vote.

I have a doubt, In MVC Project, i have to show multiple images in a web pages. When i search in the google about to show the Multiple images, then i have seen two methods , one is Showing images from local folder and another one is showing Images from database(Varbinary). And now i am confused that which method is more efficient and good.

Please help me to guide me to the right way..


Posted 2-Aug-12 19:09pm
Edited 2-Aug-12 19:31pm
Sergey Alexandrovich Kryukov at 3-Aug-12 1:32am
Not a correct question -- it depends.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

The reason there's two methods is that it depends. Showing from a DB is more work, I would tend towards leaving the images in the file system and putting paths in the DB, in most cases.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 680
1 494
2 Sergey Alexandrovich Kryukov 454
3 Afzaal Ahmad Zeeshan 404
4 CPallini 386
0 OriginalGriff 1,020
1 Sergey Alexandrovich Kryukov 673
2 DamithSL 656
3 Afzaal Ahmad Zeeshan 652
4 CPallini 555

Advertise | Privacy | Mobile
Web03 | 2.8.150731.1 | Last Updated 3 Aug 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100