哪种方法正确-显示图像 [英] Which method is correct - Showing Images

查看:92
本文介绍了哪种方法正确-显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,

我怀疑,在Asp.net MVC项目中,我必须在网页中显示多个图像.当我在google中搜索要显示多个图像"时,我见过两种方法,一种是显示本地文件夹中的图像,另一种是显示数据库中的图像(Varbinary).现在,我感到困惑的是,哪种方法更有效,更好.

请帮助我以正确的方式指导我..

谢谢

Dileep.

Sir,

I have a doubt, In Asp.net 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..

Thanks

Dileep.

推荐答案

有两种方法的原因在于它取决于.在大多数情况下,从数据库中进行显示是更多的工作,我倾向于将图像保留在文件系统中,并在数据库中放置路径.
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.


这篇关于哪种方法正确-显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆