I'm trying to send a file with asmack
with the following:
// mConn is an XMPPConnection
FileTransferManager manager = new FileTransferManager(mConn);
OutgoingFileTransfer transfer = manager.createOutgoingFileTransfer("operator@domain.corp");
transfer.sendFile(new File(fname), "File for the operator");
I'm receiving no exception but in the smack log I can see
<error type="cancel" code="501"><feature-not-implemented...
Does anyone know what can be the root of the problem?
Since asmack
hasn't been updated for a while maybe there are any alternatives to it?
I have finally figured it out. Instead of
Now I Use
and it works that way.
You have to initialize following.
Normally we call the following method to initialize the providers.
Call this method as
before creating the XMPPConnection. For further references use this link.
http://www.igniterealtime.org/builds/smack/docs/latest/documentation/extensions/index.html