First, you need to upload the file somewhere, on an external HTTP server, which 
will store the file until the user has downloaded it.

Then you inform the user about the uploaded file and send the URL to him:

<message from='[email protected]/work'
         to='[email protected]/home'>
  <body>I've uploaded a file for you!</body>
  <x xmlns='jabber:x:oob'>
    <url>http://www.jabber.org/images/psa-license.jpg</url>
  </x>
</message>

The user will receive the message with the OOB extension and can choose to 
download it.

If you have a clever HTTP server, it could also delete the file once it has 
been downloaded or after a certan period of time.

-- Christian


Gesendet: Mittwoch, 22. Januar 2014 um 10:03 Uhr
Von: "Muhammad Usman" <[email protected]>
An: "Jabber/XMPP software development list" <[email protected]>
Betreff: Re: [jdev] File transfer between online and offline user

Dear Schudt,
Can you please elaborate your suggestion and if possible please provide a 
helping material.. Thanks
 
On Wed, Jan 22, 2014 at 11:59 AM, Christian Schudt <[email protected]> 
wrote:
Hi,
 
maybe you can upload it somewhere and send the URL to the recipient via 
http://xmpp.org/extensions/xep-0066.html[http://xmpp.org/extensions/xep-0066.html].
 
-- Christian
 

Am 22.01.2014 um 07:45 schrieb Muhammad Usman: 

Hi,
I am new to XMPP and I want my users to send files to other recipients, even if 
the recipients are offline. Server will save the file and will send to 
recipient, whenever user is login(maximum wait time is 48 hours).
 
Please help me out regarding how can I achieve this functionality in XMPP. 
Thanks in Advance
_______________________________________________
JDev mailing list
Info: 
http://mail.jabber.org/mailman/listinfo/jdev[http://mail.jabber.org/mailman/listinfo/jdev]
Unsubscribe: [email protected][[email protected]]
_______________________________________________
_______________________________________________
JDev mailing list
Info: 
http://mail.jabber.org/mailman/listinfo/jdev[http://mail.jabber.org/mailman/listinfo/jdev]
Unsubscribe: [email protected][[email protected]]
_______________________________________________
 _______________________________________________ JDev mailing list Info: 
http://mail.jabber.org/mailman/listinfo/jdev[http://mail.jabber.org/mailman/listinfo/jdev]
 Unsubscribe: [email protected] 
_______________________________________________
_______________________________________________
JDev mailing list
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: [email protected]
_______________________________________________

Reply via email to