Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
Manish Jain #1
Member since Jun 2013 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Send attachments
Hello,

Can I send attachments with agsXMPP? If yes, can you point me to sample code? FYI, I'm using Openfire with Spark and able to send attachments.

Thank you,

Manish
Avatar
Alex #2
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
XMPP is using extensible XML. For small attachments you could create your own extension and embed the attachment as base64 to your messages. For bigger attachments I would suggest to embed a link only and upload them to some webservice, Webdav, FTP, Dropbox, Google Drive or similar stuff.

If both users are online then file transfer is recommended.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS