zayin wrote:
> Hello,
> 
> I have a server and I want to send a jpeg to the client upon request. This
> image is dynamic. I am using AnswerStream and that is all working great.
> 
> Then I decided I also wanted some text to go before the image. 
> 
> I could not determine how to send text and an image with the same reply.
> 
> So, I imbed a link to the image in a <img src=> tag and that is all working
> now.
> 
> The client now has to make two round trips to get the complete page. One for
> the text and one for the image.
> 
> Is this the only method to accomplish this task?

What you want to do is send a multi-part MIME payload in the body of 
your HTTP response.  You have to set the content-type to 
"multipart/form-data".  For more information, check this page:

http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2

        dZ.

-- 
Team ICS

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to