Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Exception with displaying image  RSS feed

 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In our requirement we need to display the images on a JSP and these images are stored in database. I can get the image from database uwing rs.getBinaryStream() and I can see the image on the jsp page.
but I get the exceptions on server console

and on jsp I see two kinds of exception


what could be the reason? how we can avoid them?
could some one please give me solution.
 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh I forget to attach my servlet code

 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it..

My solution is don't ever use Struts while streaming images from database....

I just created a Servlet and copied the same code from Struts Action class to this Servlet and worked. I don't know what is the exact issue behind Struts action and I will find it soon. However, I got the solution thats it.


Thanks,
Sumant K
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!