I hope. You need to share files with one device to another. For that in my app. We used, XEP-0363, XMPPHTTPFileUpload class to upload file to server and in the response we will get a url. And we will share this url to others. It may be bad idea. anyway, its working.