Generate a table of thumbnails on the fly without saving to disk

E

Espen Evje

Hi,
I am trying to present the images in a folder as thumbnails in a dynamically
created asp:table.
I however do not want to save the thumbnails to disk, only show the images
in this folder as thumbnails and then forget about them.

I've seen a lot of samples using a datagrid/list and automatically bind
thumbnails to these controls, but it does not meet my requirements. I've
also seen a sample where the thumbnail of one image is genereated and then
saved to the response.outputstream, which is almost what I am looking for,
but I cannot make this work with more that 1 image.

So my pseudocode for what I want is something like this:
------------------------------------------------------------
for each image in folder
add new cell in table
cell.text="<img src=" & image.getThumbnail( ) & "/>"
next
------------------------------------------------------------

I know that the Thumbnail that is generated is an object and it will not
make sense in a src attribute, but you might see what I want.

Hope anyone can help
/espen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top