Outputting an Array of Images - photo gallery scenario

D

dan

I have written a class that scans a directory then builds a series of
images (thumbnails) and returns an array of Image objects to the
caller. When the call is made from a client aspx page it all looks fine
but when I do a Response.BinaryWrite when in the loop which is
itereating thru' the array of images, I only ever get one image output.
Am I right in saying then that once I do a BinaryWrite call once any
further data is ignored (ie. subsequent images and any other data)...

If so, does anyone have a suggestion/proven alternative??
Thanks in advance,
dan
 
B

bruce barker

the browser only supports one image per request. also a request can return
either html or an image, but not both (actually html 4.0 complient browser
like firefox support inline images, but IE doesn't).

you could but all your tumbnails into one image, and use an imagemap for the
links.

-- bruce (sqlwork.com)





| I have written a class that scans a directory then builds a series of
| images (thumbnails) and returns an array of Image objects to the
| caller. When the call is made from a client aspx page it all looks fine
| but when I do a Response.BinaryWrite when in the loop which is
| itereating thru' the array of images, I only ever get one image output.
| Am I right in saying then that once I do a BinaryWrite call once any
| further data is ignored (ie. subsequent images and any other data)...
|
| If so, does anyone have a suggestion/proven alternative??
| Thanks in advance,
| dan
|
 

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

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top