[Standards] Images in chat
fabian.beutel at gmx.de
Sat Mar 12 18:46:45 UTC 2016
On 12.03.2016 16:57, Peter Waher wrote:
> So, there are two things that are needed:
> 1) Transfer of the image content. This can be done in various ways.
> 2) The receiver needs to understand the context, i.e. that the image
> should be displayed in the chat window (not saved to file, shown in a
> popup window, etc.)
> What solutions are available? I know I can solve this using XHTML-IM
> (XEP-0071) and HTTP over XMPP (XEP-0332), if both are supported on both
> clients. XHTML-IM allows me to include an <IMG> tag with a link to the
> image using the httpx URI scheme (HTTP over XMPP). This scheme defines
> where the image can be gotten, and negotiates how the image is to be
> transferred. What I wanted to know is, are there any other alternatives?
maybe the easiest way would be to use XEP-0363 (HTTP File upload) and
then use XEP-0066 (Out of Band Data).
As you mentioned, you could then also use XEP-0071 (XHTML-IM) instead of
XEP-0066, but personally I would always prefer XEP-0066 and leave it up
to the client implementation to decide how to display the file.
More information about the Standards