Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: displaying vCard photos

by jaldhar (Vicar)
on Apr 15, 2006 at 01:54 UTC ( #543475=note: print w/ replies, xml ) Need Help??


in reply to Re: displaying vCard photos
in thread displaying vCard photos

That is tricky, since the nature of HTML assumes that the source for an IMG tag is a wholly separate URI, and not inline.

A data uri could be used to display an inline image created on the fly. It would look something like this:

<img src="data:image/jpeg;base64,11111111111111111111111111" />
where the 1's represent the base64 encoded bytes. Mozilla supports it but does the eighty ton gorilla? It looks like it might not.

--
જલધર


Comment on Re^2: displaying vCard photos
Download Code
Re^3: displaying vCard photos
by rjray (Chaplain) on Apr 15, 2006 at 08:26 UTC

    I didn't mention it because I wasn't sure how well-supported it was. I do that in GreaseMonkey scripts, to embed icons within the script, but then I know in those cases that I'm in a Firefox/Mozilla environment.

    I stand by my opinion that having the script do double-duty (return HTML or image data based on parameters in the query) is probably going to yield the cleanest, most-maintainable result.

    --rjray

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://543475]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2014-07-26 11:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls