G
grasp06110
Hi Everybody,
Looking into this topic I have found many ways of dynamically setting
the src attribute of an image tag to retrieve binary data from a data
source for an image.
I have not been able to find a way that does not require a round trip
to the server for each image. Is it possible to avoid this?
For example, I have data for 1000 images in a database I would like to
sent to a client upon request. Since I have all of the data in hand I
would like to send it all as part of the same response and have each
of the images rendered on the client (as well as a bunch of other HTML
of course) with out the client needing to ask for each image
individually. I would think that this would represent a substantial
performance improvement as the conversation would go something like:
client: may I have everything I need to render that page that has 1000
images in it?
server: here's all the data for everything, have fun
instead of:
client: may I have that page with 1000 images in it.
server: here's the html
client: may I have the data for the first image?
server: here's the data for image 1
client: how about image 2?
server: here ya go
client: and image 3?
server: here ya go
client: and image 4?
server here ya go
....
As usual, any help would be greatly appreciated.
Thanks,
John
Looking into this topic I have found many ways of dynamically setting
the src attribute of an image tag to retrieve binary data from a data
source for an image.
I have not been able to find a way that does not require a round trip
to the server for each image. Is it possible to avoid this?
For example, I have data for 1000 images in a database I would like to
sent to a client upon request. Since I have all of the data in hand I
would like to send it all as part of the same response and have each
of the images rendered on the client (as well as a bunch of other HTML
of course) with out the client needing to ask for each image
individually. I would think that this would represent a substantial
performance improvement as the conversation would go something like:
client: may I have everything I need to render that page that has 1000
images in it?
server: here's all the data for everything, have fun
instead of:
client: may I have that page with 1000 images in it.
server: here's the html
client: may I have the data for the first image?
server: here's the data for image 1
client: how about image 2?
server: here ya go
client: and image 3?
server: here ya go
client: and image 4?
server here ya go
....
As usual, any help would be greatly appreciated.
Thanks,
John