473,837 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Photo Gallery

I'm looking for thoughts on photo galleries and security/performance
implications... I'm working on an asp.net site in vb that will include an
updateable photo gallery that will display thumbnails on a page and clicking
on the thumbnails would pop open another window with the full-sized image.
The site needs a form that provides for uploading photos.

The photo gallery can be limited to a certain number of photos if need be.
What are the implications of storing the images in a sql 2000 database vs.
the web server? Does anybody have experience with this type of
functionality? Thanks.
Nov 18 '05 #1
3 2485
I created a similar web site. It's certainly feasible.
You need to stay aware of the fact that some photos can be huge, which can
cause bandwidth problems if you're not careful about building in
scalability.

Here's an article that should be useful to you:
http://steve.orr.net/content/asp200307so_f.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


"bob garbados" <bo************ **************@ yahoo.com> wrote in message
news:10******** *****@corp.supe rnews.com...
I'm looking for thoughts on photo galleries and security/performance
implications... I'm working on an asp.net site in vb that will include an
updateable photo gallery that will display thumbnails on a page and
clicking
on the thumbnails would pop open another window with the full-sized image.
The site needs a form that provides for uploading photos.

The photo gallery can be limited to a certain number of photos if need be.
What are the implications of storing the images in a sql 2000 database vs.
the web server? Does anybody have experience with this type of
functionality? Thanks.

Nov 18 '05 #2
Thanks Steve,

You referred me to this article in response to a post of mine last week and
it was a big help. I'm fairly new to .NET and I got stuck trying to resize
images and display thumbnails. My page seemed to load fairly slow so I
wanted to look at saving the files to the web server as well. I'm assuming
that performance will be faster if the images live on the web server but
that it's a better security model to allow the user to update the database
rather than have access to the web server.

As far as huge photos are concerned, I can check the size at upload time and
not allow an upload if images are over a certain size.

How can I ensure that I save the right thumbnail? I found that the
System.Drawing. Image.GetThumbn ailImage method will return a thumbnail
embedded into the image if one exists. That thumbnail is usually pretty
tiny.

Can you lend insight into how I would go about displaying thumbnails? There
can be 1 image or 20 images and I want to save a thumbnail version of the
photo at upload time and display all of the thumbnails on one page of the
website. Can I do this with a repeater or datagrid or datalist? I've
always used a repeater to display data from a database because of it's
simplicity.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:Oq******** ******@TK2MSFTN GP09.phx.gbl...
I created a similar web site. It's certainly feasible.
You need to stay aware of the fact that some photos can be huge, which can
cause bandwidth problems if you're not careful about building in
scalability.

Here's an article that should be useful to you:
http://steve.orr.net/content/asp200307so_f.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


"bob garbados" <bo************ **************@ yahoo.com> wrote in message
news:10******** *****@corp.supe rnews.com...
I'm looking for thoughts on photo galleries and security/performance
implications... I'm working on an asp.net site in vb that will include an updateable photo gallery that will display thumbnails on a page and
clicking
on the thumbnails would pop open another window with the full-sized image. The site needs a form that provides for uploading photos.

The photo gallery can be limited to a certain number of photos if need be. What are the implications of storing the images in a sql 2000 database vs. the web server? Does anybody have experience with this type of
functionality? Thanks.


Nov 18 '05 #3
Well that's a lot of questions.
Here's an alternative to the GetThumbnailIma ge function so you don't have to
deal with its limitations:
http://www.devx.com/dotnet/Article/22079

As far as displaying the thumbnails in an organized way, I experimented with
repeaters and other such techniques, but ultimately went with a Table
control. The process is a bit more manual but it gave me all the
functionality I could ever want, and it's quite logical and intuitive.
I basically just looped through my images and dropped each one into a new
table cell object.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"bob garbados" <bo************ **************@ yahoo.com> wrote in message
news:10******** *****@corp.supe rnews.com...
Thanks Steve,

You referred me to this article in response to a post of mine last week
and
it was a big help. I'm fairly new to .NET and I got stuck trying to
resize
images and display thumbnails. My page seemed to load fairly slow so I
wanted to look at saving the files to the web server as well. I'm
assuming
that performance will be faster if the images live on the web server but
that it's a better security model to allow the user to update the database
rather than have access to the web server.

As far as huge photos are concerned, I can check the size at upload time
and
not allow an upload if images are over a certain size.

How can I ensure that I save the right thumbnail? I found that the
System.Drawing. Image.GetThumbn ailImage method will return a thumbnail
embedded into the image if one exists. That thumbnail is usually pretty
tiny.

Can you lend insight into how I would go about displaying thumbnails?
There
can be 1 image or 20 images and I want to save a thumbnail version of the
photo at upload time and display all of the thumbnails on one page of the
website. Can I do this with a repeater or datagrid or datalist? I've
always used a repeater to display data from a database because of it's
simplicity.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:Oq******** ******@TK2MSFTN GP09.phx.gbl...
I created a similar web site. It's certainly feasible.
You need to stay aware of the fact that some photos can be huge, which
can
cause bandwidth problems if you're not careful about building in
scalability.

Here's an article that should be useful to you:
http://steve.orr.net/content/asp200307so_f.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


"bob garbados" <bo************ **************@ yahoo.com> wrote in message
news:10******** *****@corp.supe rnews.com...
> I'm looking for thoughts on photo galleries and security/performance
> implications... I'm working on an asp.net site in vb that will include an > updateable photo gallery that will display thumbnails on a page and
> clicking
> on the thumbnails would pop open another window with the full-sized image. > The site needs a form that provides for uploading photos.
>
> The photo gallery can be limited to a certain number of photos if need be. > What are the implications of storing the images in a sql 2000 database vs. > the web server? Does anybody have experience with this type of
> functionality? Thanks.
>
>



Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
5229
by: nick | last post by:
After spending many hours trying to find a simple looking, fast,dynamic php photo-gallery for my digital pictures, I decided to code a my own. Once installed, all you have to do is drop a new folder of images on the server. Dynamic thumbnails, slideshow are built in.
2
3441
by: Daniel Kelly \(AKA Jack\) | last post by:
Hi! I'm searching for a Photo Gallery software package (like Coppermine and Gallery) that works, from the ground up, like a database-driven app. In other words, I want a gallery which entirely does away with the hierarchical structure of traditional gallery apps and allows the user to select, from a list of criteria, whatever photos he or she wishes to see. For example, each photo would have entries for photographer, category, date,...
10
2889
by: matt | last post by:
I have this code, works perfectly on Windows server, but now i'm trying to run it on a Linux server, the form submits, i get no errors, but the photo doesnt upload, and the caption file doesnt write.... any ideas why?? <?php include 'gall_settings.inc';
7
3274
by: Eric Lindsay | last post by:
I would like to do a photo gallery with a liquid layout. I wanted to center a caption below each photo (or above each photo). I can do that easily with tables, but then I don't have a liquid layout. Besides, I wanted to try to do it with CSS. I can do centered captions with text-align. This works provided the element containing each photo is floated left. I have found several examples of how to do this. However I didn't want the...
1
2920
by: desjardins.daniel | last post by:
Hi ! Excuse my english, i'm a french canadien... So here my message : I have put on my site a photo gallery and at the right a nav menu. This menu has a red dot visible want someone is passing over one item or clickong one item. I want to make two things in this page (the sameone http://www.danieldesjardins.com/gallery/1202015) so it would be like a
13
4357
by: Viken Karaguesian | last post by:
Hello everyone, Can anyone recommend a good online site to learn PHP? The W3Schools website is quite lacking - leaves much to be desired. I'm sure there are many places, but which ones are good? I currently run a site with an extensive photo gallery. Hundreds of photos. Right now I have a system which the thumbnails are laid out in a table. You click on a thumbnail and you see the full size picture. That full size picture is in its...
1
2235
by: Throw | last post by:
G'day everyone I'm looking for a simple photo gallery script in PHP (or Perl), but not too simple. I have tried several photo gallery scripts in either language and I have found that they are either too complex or too simple for my purpose. Most photo gallery scripts are intended primarily for sharing new photos continuously and allowing visitors to comment on them. I want something more static, which allows more text content.
1
3612
by: cumupkid | last post by:
II am trying to create a form that will allow me to upload photos to a folder in the site root directory and add the information to the mysql db at the same time. I have created two forms, one that uploads to photo to the folder in the site root diorectory. One that uploads the info to mysql database. but... When I try to upload them both ways at the same time i cant get it. I am Including code for both pages i have working. Code for...
1
1837
by: popotz | last post by:
Hi..I really need a big help.. I was wondering how to make my own photo gallery for my own website. The photo must be uploaded first, and then it automaticly putted into the gallery..if we click the photo, then it will go to the photo full sreen.. I don't know how to make the script for put it into the gallery.. best regards, Erwin Chrisman
0
2315
nomad
by: nomad | last post by:
Hello Everyone. I founded an Flash and xml photo gallery. It works but I took it to another step What I want is to have six different galleries in one Flash file. I figure out how to do that but when I click on the the galleries I can see the pervious gallery files. The gallery works like this: When you open the gallery there are links on top of the page where you can go to other gallery; with gallery one which has small thumbnails on...
0
9842
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9682
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10874
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9398
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7806
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5668
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5848
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4474
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4040
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.