This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I need help with a performance issue, loading many images to a jsp page.
Here is the work flow as of today:
- I have a web page with a search text box.
- The search string is passed to Google Image Search.
- The result web page is parsed for tags and images are downloaded for a more tailor made later presentation.
- One requirement is that the images should be renamed and linked as: http://www.MyDomain.com/images/image0001.jpg regardless of there former name and the final web page contains these links.
All the above works today but I have one performance issue here. If many images are found I will have to wait for all of them to be downloaded to the web server before they start to load to the browser. I want the first image to start load to the browser immediately after is has arrived to the web server.
My guess is that I will have to make some kind of servlet for sending images to a web page capable of receiving images dynamically. HERE is where you nice code ranch java cowboys come into the picture. Do you have any suggestion for the best practice on how to make this work. Feel free to ask anything that appears unclear.