[Standards] Proposed XMPP Extension: Data Element

Olivier Goffart ogoffart at kde.org
Sat Nov 10 08:25:41 UTC 2007


Le samedi 10 novembre 2007, Rachel Blackman a écrit :
> On Nov 9, 2007, at 3:55 PM, Peter Saint-Andre wrote:
> > Peter Saint-Andre wrote:
> >> XMPP Extensions Editor wrote:
> >>> The XMPP Extensions Editor has received a proposal for a new XEP.
> >>>
> >>> Title: Data Element
> >>>
> >>> Abstract: This document specifies a method for including small bits
> >>> of binary data in an XMPP stanza via the data: URL scheme.
> >>>
> >>> URL: http://www.xmpp.org/extensions/inbox/data-element.html
> >>
> >> See, that was easy, wasn't it? ;-)
> >
> > And there's always http://wiki.jabber.org/index.php/
> > XHTML_Inband_Images
> > too (I haven't looked at that in a while, but we might want a way to
> > refer to the <data/> element from within the same stanza via a sid of
> > some kind).
>
> In the XHTML-IM body:
>
> <img cid='1'/>
>
> ...and then within the same message stanza...
>
> <data cid='1' src='data:image/png;base64,LOTSOFBASE64STUFFHERE'/>
>
> La. :)

personally, i'd prefer
<img src='data:image/png;base64,LOTSOFBASE64STUFFHERE'/>
So it can be passed directly to the html engine. (My client already support 
receiving such image)
And it is shorter and simpler, also.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.jabber.org/pipermail/standards/attachments/20071110/a4063f14/attachment.sig>


More information about the Standards mailing list