> Hi all,
> 
> Please tell me how can I create a multipart html file that includes html
> text and images.
> I know that Mime::Lite can create such a thing for sending an email with
> attachments, but I don't know if it is possible to use it for creating
> common HTML pages with multipart content.
> 

I was not aware that this was even possible. It does appear that some
browsers, specifically in the Netscape class could handle this at least
once upon a time.  I found a link through google to chapter 13 of the
definitive HTML book from ORA (illegal copyright violation so I will not
provide it), that talks about how to do this, specifically in an HTTP
push application (like streaming media, etc.) so apparently it can be done.

This is going to be very, very browser implementation specific I
imagine, because the browser has to know how to deal with multipart data
transmissions, etc. but assuming your target app can handle it then it
appears to work almost exactly as MIME does in e-mail. Aka you specify a
content-type of multipart/*, with a boundary string, then just print
your multiple parts separated by the boundary. Having said that you
might be able to coerce MIME::Lite into doing this, though it might be
overkill, since you may not have to deal with encoding, etc. since it
isn't mail going through an intermediary.  Either way you should look
into some of the server-push applications available and see what they do.

Of course, not sure why you would want to do this with text and images
anyways, why not just serve up a normal <img> tag?

HTH,

http://danconia.org


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to