Actually, you *do* want to store the thumbnails as well to minimize
the amount of work to be done in delivering the thumbnail list.
You can store the thumbnails outside the database in a folder,
ready for delivery to the browser, if you like, but rendering them
on the fly from the original images is a no-no in when performance
and scalability at the server end is considered.
Delivering the original images to the client and letting the client
do the scaling in order to create the thumbnails is another no-no
due to the (unnecessary) bandwidth requirements.
Unless, of course, it is a very short list of images and you have some
Ajax stuff on the client that pops up the original image when clicking
the thumbnail, but even in such a scenario, the original image would
normally be retrieved asynchronously as needed with little noticable
delay.
Sorry, I do not have any code for you. There is plenty of code out
there, but first you need to decide on your architecture, i.e. what
your requirements are weighted against the various performance
bottlenecks and scalability issues.
Regards,
Joergen Bech
Thanks for the quick reply Joergen.... i hadn't given much consideration to
the bandwidth and other issues....(like i said im new). The full size images
will be scans of A4 size, i dont know exactly what the average file size is
going to be, but it is likely to be several MB. Whats more there will be
hundreds, if not thousands of these images with more images being received
all the time. The browser based app is simply going to be a read only display
of the images, another app has already been made for processing the scans.
I suppose rendering the thumbnails on the fly is a bad idea.
I had read up a little on the idea of storing images in a file on the
server...but i think it might be best to keep the thumbnails tied to their
parent images (already in sql db)?
This will mean creating a thumbnail of each image as they come in??
Would you think that this i the best way?
I have found some info on how to display thumnails in a gridView and then
show the full image from the thumbnail...i think i will just assume that at
thumbnail is stored alongside the the parent image.
This may be a little out of my league at the moment......its not urgent as i
was simply asked to do a little research on what might be the best way to go
about it.