You *can* do that if you really want to. I think the content-type is
"multipart/mixed". I wouldn't recommend doing it that way. It would be a LOT
of work. A much easier way would be to pass parameters to your servlet
through an image tag. You can take a look at GifServlet to get an idea how
to do that.

http://www.metawerx.com.au/aaron.porter

Aaron


> -----Original Message-----
> From: Mark de Lange [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 19, 1999 12:34 PM
> To: [EMAIL PROTECTED]
> Subject: How to include dynamic image-data into HTML
>
>
> Hi,
>
> The Servlet that I'm developing generates images on-the-fly. I want to
> include these images into the output HTML code. Is it
> possible to send the
> image data along with the HTML code?
>
> All examples that I've seen only return an image *or* a HTML
> page. What I
> need is an HTML page with images.
>
> The only working solution that I know of is to save the image
> to a temporary
> file and include an img tag to that file in the  HTML code.
> But each image
> shall only be displayed once, so it should be a lot cleaner
> to include the
> image data into the HTML code.
>
> Regards,
>
> Mark de Lange
>
> ______________________________________________________________
> _____________
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
> http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to