I have already done that by creating a Image Servlet. But what i don't understand is why can't u do it through a tag. When you can have a iterator tag which accepts a Collection object, then you can always accept a byte array too.
Originally posted by mini mehta: But what i don't understand is why can't u do it through a tag.
Because HTML doesn't work that way. There is no meand to put the byte data directly into an HTML page and then expect theimage to show up. You must make a spearate request through an <img> tag.
JSP isn't any kind of magic that will make HTML do anything it can't do outside of JSP.
Oh, and please read this with regards to using words like "u". Thanks.
mini mehta
Ranch Hand
Joined: Oct 22, 2000
Posts: 120
posted
0
Originally posted by Bear Bibeault:
Because HTML doesn't work that way. There is no meand to put the byte data directly into an HTML page and then expect theimage to show up. You must make a spearate request through an <img> tag.
JSP isn't any kind of magic that will make HTML do anything it can't do outside of JSP.
I never said html img will do it. I mean writing a custom jsp which has access to every object as servlet like OutputStream.
Still can't do it. JSP is a templating technology used to render HTML pages to be sent to the client. You cannot do anything with JSP that HTML cannot do. And HTML cannot render images with a byte stream embedded in a page.