> -----Original Message-----
> From: Graham Lounder [mailto:[EMAIL PROTECTED]]
> Sent: Dienstag, 30. April 2002 17:18
> To: [EMAIL PROTECTED]
> Subject: OT: Changing Content Type
>
>
> Sorry, this is a little off topic. Is there any way to change your
> content type mid way through a reponse? What I want to do is generate a
> dynamic html page, but I want to change content type and put a
> dynamically generated jpeg image in the page. Is this possible?
>
> Right now I'm having to make an image tag which points to a seperate
> servlet which generates the image. I'm trying to make a tag out of my
> code and it would help if I could put the html and image generation code
> together in the same request. Any ideas if this is even possible?
>
> Graham
>
I've read info on how to do this in a mime group.
The technique is mostly used within mail, but I'm sure I've read about
using it in browsers as well.
The content type of the entire page is set to multipart/?something? and
then you must generate the mime struture of each part.
One part (presumably the first part) is text/html. The hrefs in the
html can refer to the other parts of the multipart. The notation to do
this *may* involve the word "CID" but I've never done it so I'm not sure.
It must be documented in one of the RFC's.
I do not know which browsers support the multipart structure, though I
recall people talking about the latest netscape, and much as I dislike IE,
I suspect the latest version also handles them.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>