Connecting Tech Pros Worldwide Forums | Help | Site Map

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

Espen Evje
Guest
 
Posts: n/a
#1: Nov 17 '05
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



Espen Evje
Guest
 
Posts: n/a
#2: Nov 17 '05

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


Thanx a lot. This worked superb :-)

/espen

"Natty Gur" <natty@dao2com.com> wrote in message
news:uXN8ZktRDHA.2768@tk2msftngp13.phx.gbl...[color=blue]
> Hi,
>
> You need to split your page to two pages. One will produce the Image by
> outputstream. The other creates that images in table and set the src
> attribute to the first page with the right parameters (pass as query
> string).
>
> for each image in folder
> add new cell in table
> cell.text="<img src= GetImage.aspx?id=" & image.ID & "/>"
> next
>
>
> Natty Gur, CTO
> Dao2Com Ltd.
> 28th Baruch Hirsch st. Bnei-Brak
> Israel , 51114
>
> Phone Numbers:
> Office: +972-(0)3-5786668
> Fax: +972-(0)3-5703475
> Mobile: +972-(0)58-888377
>
> Know the overall picture
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it![/color]


Closed Thread