• Post Reply Bookmark Topic Watch Topic
  • New Topic

Image Servlet : display and hidden random  RSS feed

 
victor rubiella
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!,

I have a page list of images that appear or disappear at random when refresh the page. The images are obtained from Servlet. I don't understant!

I'm load Blob objects (images) from bd from this Image Servlet,

//... retrieving BD Blob (imageToReturn)

try{
BufferedImage bi= ImageIO.read(imageToReturn.getBinaryStream());
ImageIO.write(bi, "gif", os);
os.close();

}catch(Exception e){
os.close();
}

And essential code into jsp (deleted other text and tags):

<logic:iterate id="book" name="buscadorForm" property="resultados">
<html:img src="BookImages?bookIsbn=${book.id.isbn}" />
</logic:iterate>

This code generate a list of images that appear or disappear at random when refresh the page. I supose that I should be crushing the buffer but not like.

Thks!!
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by victor rubiella:

I'm load Blob objects (images) from bd from this Image Servlet,
//... retrieving BD Blob (imageToReturn)


Hi Victor.
Welcome to JavaRanch.

A couple things.
First, please use real words when posting to the ranch. I have no idea what 'bd' is.
I'm guessing that you've got the initials to 'database' backward but it's not clear. Using real words eliminates the need for this type of guessing and allows your readers to focus on your actual question.

Second, I don't see a question in your post.
What are you asking?
[ April 30, 2008: Message edited by: Ben Souther ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!