Hi
I am storing users data in a table along with pictures using JPA. I have successfully stored the images in data base. I have to display the data on a
JSF page in data table along with the pictures. Now I am facing the problem of how to display the pictures. When I retrieve the data, all the records are fetched along with the pictures in form of byte arrays. I am only stuck on how to display the images.
I found several programs on Internet which used to pass Id of the image to a
servlet which will retrieve the image and process it and send as a response which means for 10 pics, there will be 10 seperate full cycle requests to database when I am already having all the pics loaded to memory. I don't want to make a separate request for each image of each record. Reason being its a distributed application. Every call means a remote call and serialization and all that other stuff.
Is there any possible solution to this.
Regards