Sending an image and.or HTML via XMPP

1,096 views
Skip to first unread message

Egor

unread,
Dec 5, 2008, 4:41:28 PM12/5/08
to jabber-net
Currently, I have a working Jabber client (built with Jabber-Net).

Text messages are working fine.

Now I am trying to figure out how to send a bit more than just text.

My questions are:

1.
Is it possible to send a picture (an image) via XMPP?

The idea is to have a message which is a mix of images and text.


2. Is it possible to send HTML?

I know that Jabber clients are not browsers, but I remember I was
reading somewhere about HTML support in XMPP... just can't find that
source.

Or maybe, I should re-phrase this question:
What HTML elements are supported by XMPP?

Thank you very much.

Egor

Joe Hildebrand

unread,
Dec 8, 2008, 2:41:43 AM12/8/08
to jabbe...@googlegroups.com

On Dec 5, 2008, at 2:41 PM, Egor wrote:

> 1.
> Is it possible to send a picture (an image) via XMPP?
>
> The idea is to have a message which is a mix of images and text.

There isn't good interoperability on that yet.

> 2. Is it possible to send HTML?
>
> I know that Jabber clients are not browsers, but I remember I was
> reading somewhere about HTML support in XMPP... just can't find that
> source.

Just set the Message.Html property.

> Or maybe, I should re-phrase this question:
> What HTML elements are supported by XMPP?

XEP-71 specifies the subset of XHTML that is allowed.
http://xmpp.org/extensions/xep-0071.html

Egor

unread,
Dec 10, 2008, 10:06:52 AM12/10/08
to jabber-net
Joe,

Thank you for your answers.

May I ask a few more questions, please?
[This custom Jabber "client" I'm writing is a middle-tier app, and I
need to make it the best I can. Hence the persistence.]

---------------------

> There isn't good interoperability on that yet.

Joe, do you mean interoperability between various Jabber clients (such
as GTalk Desktop client, Spark, Psi, Pidgin, etc.),
or between XEP(s) and the current Jabber-Net code?
I mean, why exactly can I not send a picture in the message body?

If the reason is in the Jabber-Net code only, could you point me to
the right XEP, so that I could try and update the Jabber-Net code for
image support, please?
I am not an expert in Jabber-Net, but I am a Microsoft Certified
Professional in C#/ASP.NET, and I think I can get this done. If I
succeed, I'll submit the changes to SVN.

------------------------------

> Just set the Message.Html property.

I tried... [sigh]

Is there a sample?

[quote]"Kids, you did your best, and you failed miserably. The lesson
is, never try."[end of quote]

:-)

For example, how would I send the following?
<a href="http://www.example.com">Some <b>bold</b> text.</a>

[As for <img ..../> , it's in my previous question.]

-----------------------------

The last set of questions: about JabberWerx.

1. Is it still available, now that Jabber, Inc. has been acquired by
Cisco?

2. If it's available for Jabber, Inc.'s/Cisco's partners, what are the
additional code samples and/or code? Maybe, file transfer? Support for
Windows CE/Mobile?

3. Is there still a possibility for a small ISV to become Jabber,
Inc.'s Development partner, or is the parent company now handling all
partner relationships?

-----------------------------

Thank you very much.
Reply all
Reply to author
Forward
0 new messages