cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1289
Views
0
Helpful
1
Replies

Sending image through Jabber

Patrick Howe
Level 1
Level 1

I am looking to send an image inline through Jabber similar to how you can send a screen snip.  I am currently using BotKit, and I am looking at creating my own message stanza but can't find any examples of how to properly do this.  I have seen two methods where one is to upload to an http server and then use a url in the message doing something like <img>url here</img> or doing a base64 encode of the image and puting that in the message stanza.

 

What is the preferred method and is there a real trivial example of sending a basic image inline using Cisco Jabber and the actual XML message stanza that would be sent to achieve it?

1 Reply 1

dstaudt
Cisco Employee
Cisco Employee

The general approach would be to use the embedded HTML message capability of Jabber bots.  As you suggest, the image would be hosted on an web server and used in an <img> tag or href in the <html> element of a Jabber message stanza.

 

This learning lab covers most of the concepts, though doesn't have an example specifically of images: https://developer.cisco.com/learning/lab/jabber-botkit-lab/step/1