简体   繁体   中英

send files to MUC Rooms using XMPP Framework

How to send files to MUC Rooms using XMPP Framework? I have searched a lot about this.

Using the SI method i get error 503 service unavailable or Wrong JID ,but how to pass a resource for groupchat ?

I had used the method to transfer image using string data but now its not up to my needs. I read that we can upload file to server and send the link instead. I'm using openfire server.

If anybody has some insight about this please share. Any help is appreciated. Thanks !

Yes you can upload your image to a server and send the link. The flow goes like this:

You need to send a thumbnail image using xmpp (and the link of the original image stored on server), like you must be sending the entire image now in your application.

When the user clicks on the thumbnail image, you can download the original image from the server using that link.

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