Hi,
I would use webimageviewer for my images gallery...but I have more 1000 jpg files...
It's possible?
Hello ginotaccone,
WebImageViewer is not optimized for that amount of images. Although it will render and initialize all the images, the performance will not be satisfactory.Before all, think about end users who will be scrolling a lot to see all images, or jut particular image which is at the end (or in the middle) of the collection.
Just to add to this - I am using it in scenarios where there are, say, 100 images (not 1000) and it works fine. In fact in my case the images are on the network so I'm setting the URL for each to an aspx page that reads the bytes and streams the image. Works quite well, with the caveat that in my case the images also have pregenerated thumbnails that are a good size for WebImageViewer (120x160) and are pretty small (< 5k). I'm not doing any caching of the URL requests or anything either.
At 100 I can tell though that it's starting to get a little tedious to scroll through the images, even set to Page. What would rock is a multiline viewer or gallery control, but I guess I'm being lazy :-)
I am interested in hearing how you are handling the thing you describe as setting the URL to an aspx page that reads the bytes and streams the image. I know how to reference the aspx page in the imageviewer control, and I have my images I want to display in an IO.MemoryStream from a database table, but I'm just not sure how to get them to display in the imageviewer control.
It sounds like to me your solution would work but I'm not sure how to get there. Another thought I had was somehow saving down the MemoryStream to a temporary file on the server and calling that URL.
Craig