Project

General

Profile

How to transfer file using tigase.jaxmpp.j2se.filetransfer.FileTransferManager

tao zhong
Added 10 months ago

tigase.jaxmpp.j2se.filetransfer.FileTransferManager fileTransferManager = new FileTransferManager();
fileTransferManager.setJaxmpp(jaxmpp);
fileTransferManager.addNegotiator(new tigase.jaxmpp.j2se.filetransfer.Socks5FileTransferNegotiator());
fileTransferManager.sendFile(peer, new File("E:/test.png"));

Exception in thread "main" java.lang.NullPointerException
at tigase.jaxmpp.j2se.connection.socks5bytestream.Socks5ConnectionManager.setContext(Socks5ConnectionManager.java:618)
at tigase.jaxmpp.j2se.filetransfer.Socks5FileTransferNegotiator.setContext(Socks5FileTransferNegotiator.java:196)
at tigase.jaxmpp.j2se.filetransfer.FileTransferManager.addNegotiator(FileTransferManager.java:221)

Replies (2)

Added by tao zhong 10 months ago

thanks

    (1-2/2)