简体   繁体   中英

How to set Muc Room Image Using XMPP in iOS

I am using XEP-0045 for room implementation in XMPP for iOS but it does not give any functionality regarding adding room Image. Can any one suggest which protocol supports for setting room Image.

XEP-0045 does not support avatar or image by default.

You will need customization. If you have provision to change the server you can follow user avatar XEP-0153 . If not there is another work around (which is not so good). You can use the description field (muc#roomconfig_roomdesc) to store image data (should use base-64 encoded) along with your actual room description. But there could be limitation of description size at the server being used.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM