创建将使用多部分服务上传媒体数据(http post post)的api.在服务的响应中获取url(获取http服务)并将url作为xmpp消息发送.
<message
from='user1@hostName'
id='richard2-4.1.247'
to='user2@hostName'>
<body>Sent a Image</body>
<url>media url</url>
<thumb> Base 64 </thumb>
</message>
Run Code Online (Sandbox Code Playgroud)
当user2收到消息时,您可以调用服务来获取媒体数据
如果您遇到任何问题,请告诉我:cvofjaspreet@gmail.com