如何在我的网站上管理图片

问题描述:

亲爱的朋友.

现在,我正在使用SQL Server 2005在ASP.Net中开发一个网站.我的网站"包含很多图像.我不能决定将这些图像存储在哪里.我应该将它们存储在SQL数据库还是任何图像托管站点中.正如我所看到的,有许多网站将其图像存储在图像托管网站上(例如tinypic.com)
请指导我如何处理这些图像.哪种方法更适合我的网站.如果我将这些图像存储到tinypic.com,则如何动态存储和检索.

等待令人满意的答案.

Dear Friends.

Now a days, I am developing a website in ASP.Net using SQL Server 2005. My Site, contains a lot of images. I can not decide that where should I store these images. Should I store them in SQL Database or any image hosting Site. As I have seen that so many websites store their images on image hosting sites (Like tinypic.com)
Please Guide me how should I handle these images. Which method would be better for my site. If I store these images to tinypic.com, then How I can Store and Retrieve dynamically.

Waiting for a satisfactory Answer.

好,您必须打个电话.我们只能根据各种情况提出建议.

如果图像是用户数据(例如,个人资料图片),我会将其存储在数据库中.好处是,您将来可能希望更改UI,并为其创建支持的移动应用程序.在这种情况下,它变得很方便.

对于静态图像,我会将它们存储在Web应用程序的文件夹中.

就个人而言,出于以下几个原因,我不喜欢将图像托管到托管站点:
1.我不希望我的内容超出我的范围.
2.我不确定其可用性.
3.还有更多...
Well, you have to take a call. We can only suggest based on various situations.

If the images are user data (profile pic for eg), I would store it in database. Benefit is that, you might want to change the UI in future, create a supporting mobile App for it. In that case it becomes handy.

For the static images, I would store them in a folder within web application.

Personally, I dont like hosting my images to hosting site for couple of reasons:
1. I don''t like my content to be present out of my bound.
2. I am not sure about the availibility.
3. many more...


如果这些是很少更改的静态图像,则将其保存在解决方案中的Images文件夹中.
If these are static images that rarely change then keep them in an Images folder within your solution.