简体   繁体   English

如何在iOS中使用XMPP设置Muc Room图像

[英]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. 我将XEP-0045用于iOS的XMPP中的房间实施,但是它不提供有关添加房间图像的任何功能。 Can any one suggest which protocol supports for setting room Image. 任何人都可以建议哪种协议支持设置房间图像。

XEP-0045 does not support avatar or image by default. XEP-0045默认情况下不支持头像或图像。

You will need customization. 您将需要自定义。 If you have provision to change the server you can follow user avatar XEP-0153 . 如果您准备更改服务器,则可以按照用户头像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. 您可以使用描述字段(muc#roomconfig_roomdesc)与实际的房间描述一起存储图像数据(应使用base-64编码)。 But there could be limitation of description size at the server being used. 但是在使用的服务器上可能存在描述大小的限制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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