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.
is there a way to display image from Database to JSP directly without placing into any folder.
I can save and retrieve image from database and the place into some folder then display in jsp but I want to display directly from database to jsp.
Any clue ?
If you want to do this with Struts, then you can use the stream result of Struts 2. You'll have to create an action which will retrieve the image from the database and send it as a stream in the response. In your JSP you'll put the url of that action in the src attribute of img tag...