That is tricky, since the nature of HTML assumes that the source for an IMG tag is a wholly separate URI, and not inline. I think they might be making allowances for this in XHTML 2.0, but I don't know for sure (and it doesn't exactly help you either way).
As another commenter noted, you could save the content to a file and refer to the file in your SRC attribute. Of course, that will lead to another HTTP request, so you have to either put it in a place that your server already uses for content, have some sort of aliasing set up, or have your script handle both types of request-- the vCard proper and the image attachments. That is what I would do-- have the same script (I assume this is CGI?) that displays the vCard-as-HTML also have a calling-form to fetch the image content. Then return that content with proper Last-Modified, Content-Type, etc. headers and such based on the timestamp of the vCard itself.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|