This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have succesfully upload an image to a database. Now comes the hardest part: display this image..
I load in the session a bean named "test" with attribute "image" (type byte) in wich the image is savad. Now I can't figure it out on how to display this image into the jsp.
Search the web for "image servlet". You can do the same thing with an action if you want, just return null instead of an action forward.
Joined: Jul 27, 2010
David Newton wrote:Search the web for "image servlet". You can do the same thing with an action if you want, just return null instead of an action forward.
LOL.. I found also my topic..:D
Ok.. So I create this action:
And in the jsp I put this:
It work. But I want to display this image without typing on a link and I'd like to render the image (minimize it to a specific size).
I tried returning null and use <html:image src="/viewImage.do"/> but nothing. Why??