Originally posted by Ulf Dittmer: You can't. JSPs (and thus also JSP tags) are for creating text, not for streaming binary data. You will need to use a servlet to do this.
thank Q , i put that code in servlet then can i call that servlet in dotag() using the attribute src.
Joined: Mar 22, 2005
It sounds like you are trying to somehow embed an image in a web page - that is not going to work. You need to write an <img> tag into the web page, and the src attribute of that img tag then points to a servlet that serves the raw image data.