On Mon, May 27, 2013 at 07:27:03PM +0000, Peter Waher wrote:
> Hello
> 
> It would be very practical if the data URI scheme was supported by the Data 
> Forms Media element (XEP-0221), especially for small items, such as small 
> images embedded in text.
> http://en.wikipedia.org/wiki/Data_URI_scheme#Format
> Any thoughts? Today, all content has to go through bits of binary (XEP-0231).

With Bits of Binary, the recipient can cache the file, if they don’t
support it they can choose to not retrieve it, and there is no
information loss compared to a data: URI.  As for the sender, they
could even put the data element in the same stanza than the cid, but it
removes the recipient advantages, making it strictly equivalent to the
data: URI.

The only reason for data: I can see is when you have a very tiny file,
of just a few bytes, you could want to reduce the overhead.  But I
don’t think those few bytes saved (and lost for people who already have
that image cached or can’t display images) are worth it.

-- 
Emmanuel Gil Peyrot
XMPP: <linkma...@linkmauve.fr>
OpenPGP: 24B1D609

Attachment: pgpZGTs4mqWR6.pgp
Description: PGP signature

Reply via email to