presumably your JSP page is currently producing HTML. HTML cannot contain
image data in the file itself, only through an external href.
so the best option would be to generate an <img> tag in your JSP which
contains a URL to a different JSP (or the same jsp with different
parameters). When the browser requests the image, you can send the binary
data as content type image/jpeg.
Andy
"Amardeep Verma" <ad******@email.com> wrote in message
news:1a**************************@posting.google.c om...
Hi,
I have an image, in JPEG format, stored inside a byte array.
I have to render that image. I will not be able to open a file
connection and write that image to HDD, either on client side or on
server side. So my query is this, how do I render an image which is
stored as a series of bytes? I have tried out.println and IMG tag, but
they do not work.
Any help would be appreciated
Bye
Amardeep Verma