设计照片库 [英] Designing a photo gallery

查看:89
本文介绍了设计照片库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我决定使用SQL 2008中的文件流功能为asp.net网站提供照片。  我的问题是,我是为每个文件将单独的缩略图图像保存到数据库中,还是从存储在
db中的fullsize图像中动态创建一个?

I have decided to use the filestream feature in SQL 2008 to serve photos for an asp.net website.   My question is do i save a seperate thumbnail image to the database for each file or create one on the fly from the fullsize image stored in the db?

我的每个设计相册是aspx页面的组成部分,显示与Windows资源管理器中缩略图视图类似的缩略图。 然后,当您点击缩略图或标题时,它会将您发送到一个页面,其中包含图片的全尺寸视图。

My design for each photo album constists of a aspx page that shows the thumbnails similiar to the thumbnail view in the windows explorer.  Then when you click on the thumbnail or caption it sends you to a page with the fullsize view of the picture.

我已经有了这个设计,只是想要意见,我知道保存缩略图也将使用额外的磁盘空间,但我不知道是从全尺寸照片创建缩略图以填充我的缩略图视图页面点击我的网络服务器? 

I already have this design working, just want opinions, I know that saving thumbnails also will use extra disk space, but what i don't know is will creating a thumbnail from the fullsize photo to populate my thumbnail view page hit my webserver hard? 

希望这会使感觉...

Hope this makes sense...

 

 

 

推荐答案

在不知道将在系统上加载何种负载的情况下,这是一个难以回答的问题。
It's a difficult question to answer without knowing what kind of load will be put on the system.


这篇关于设计照片库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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