Remember, once it gets to the browser, a JSP page is just like any other normal HTML page.
So if you wanted to display an image in an HTML page, how would you do it?
Hi there, thx for the advice. I think I have to apologise for giving a bad title to my post. I think the problem I am facing now is more of how to send the data over to JSP rather than displaying it.
Joined: Jul 11, 2006
Hi there, sorry to trouble you guys again. I think my english is bad, sorry about it. I think i should list out what I am doing in point form, hope this helps
1) Servlet recieves XML info containing Base64 of the image. 2) Servlet interpretes XML and converts Base64 to byte array. 3) Servlet sends byte array through http response to JSP<< This is the part which i faced my problem.
It can be done, but not in the way you are planning.
On your JSP page -- which will turn into an HTML page when sent to the browser -- you need to create an <img> tag that references the URL of a servlet that will serve up the image data (along the lines of what ak posted earlier).
You can't just send image data along with the HTML markup.