[jitsi-dev] data URI scheme


#1

Hello

(Sorry for reposting, but the first mail didn't seem to get forwarded to the list.)

A question about data URI scheme support in Jitsi (in IMG tags in XHTML-IM). Is this supported at all? Or under certain conditions?

References:

§7.5, XEP-0071
http://xmpp.org/extensions/xep-0071.html#profile-image

HTML example:
http://en.wikipedia.org/wiki/Data_URI_scheme#HTML

<message from="peter.waher@jabber.org/jitsi-23m65q2<mailto:peter.waher@jabber.org/jitsi-23m65q2>" to="internetofthingsbbb@gmail.com/905C6AB8<mailto:internetofthingsbbb@gmail.com/905C6AB8>" type=“chat” id=“1398194922623377736284”><body>x:=-6..6|0.1;plot2d(x,sin(x))</body><thread>wmReu141</thread><x xmlns=“jabber:x:event”><offline/><composing/></x><active xmlns=“http://jabber.org/protocol/chatstates”/></message>

<message from="internetofthingsbbb@gmail.com/905C6AB8<mailto:internetofthingsbbb@gmail.com/905C6AB8>" to="peter.waher@jabber.org/jitsi-23m65q2<mailto:peter.waher@jabber.org/jitsi-23m65q2>" id="47" xml:lang="sv" type="chat"><html xmlns="http://jabber.org/protocol/xhtml-im"><body xmlns="http://www.w3.org/1999/xhtml"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAADICAYAAACZBDirAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABlbSURBVHhe7Z3fj1zFlcf5K/Jf+GVfQMqLSSK582IRJQqyjIIcwlOwX9IGIidmwZqVLAsiE0VYUS8wAiwhJCwHkCVs1JaCA1gobGSjsMheerOMwKsMBpkFFrJTe0717fbtnrq/61Sd6vv9SEf27WqPu3uqP1Wnqm7VLQYAAHoKBAgA6C0QIACgt0CAAIDeAgECAHoLBAgA6C0QIACgtzQW4GQ0MMNxdrHA2AxvucXcYmNIVwAAoJtGAhwPp4JzCTAvRv77YDSZXgAAgFIaCHBsxiS44h5gjvGw+jkAABAZjynwDEqFByNT1P/75JNPzNramnnooYcQiMo4dOiQ2bt3r9m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xgMCFAACjAMEGAcIMA4iAlw4/nIBnAqnHQgwDhBgHLwLcHZQukuAeTFWHYwOAcYBAowDBBgHzwIcmzEJrrgHmGM8LH0OBBgHCDAOEGAcAqfAMygVHoxM2cF5EGAcIMA4QIBx6CzAWcp7S05o5QLkccDy8T/m448/No888oh9gSnG4cOHnY8jZOLQoUNm7969Zt++fc5y7ZFyfUn5ta+trWXGKcdPD3AyMoMa8gMAAE20FyBLL7uY9xazKJsEAQAALTQS4AIkwCFEBwBImPYCBACAxIEAAQC9BQIEAPQWNQLMT6SUrzVUAE8AVax31EX9WxV1MTGjQfa61VeKZVL9zHMkUM+7ekOHAMfDhGaOsy9lQgLMz97z35P5rHP1git6Sg5M9jOfk0A99+ANFQKcjIZmOBxMTa5cLNPKPKq840UtFbcqaoLrxbx+J9VILpHQZz4jhXruwxsqBGi7sVkNUd1azlOC6lv+dJLW6x5T5U5fgAnWlUTquQ9vRBPgPHenD3iUT2/4w1fUXOZf55g+ZPv3LDR/IfOve/oqeUwqrbGo9HuA6X3mDMskhXrOdbyrN9SMASbRA5yTWKvOlSPFgfic9BYqewqk+pkvoLyee/CGDgES23ssmklLgPPPVnmLvp10Z4HT/czz6K/nXb2hRoAAABAaCBAA0FsgQABAb4EAAQC9BQIEAPQWCBAA0FsgQABATzHm/wH6B1nGMqBeqQAAAABJRU5ErkJggg==" /></body></html><body>Clayster.Library.Math.Graph2D</body></message>

Best regards,
Peter Waher