AnsweredAssumed Answered

problem connection to send file with smack and coldfusion

Question asked by sourceamax on Nov 3, 2014

Hi Everybody,


I Have a problem with the smack API.

I have to create chat and i need to send file to each other.

There is a class for that (fileTransferManager) but when i want to initialize this one i got a problem.


He told me that he don't know the arg of the constructor

The arg constructor is a XMPPConnection type and when i give it to him he told me :


**Unable to find a constructor for class org.jivesoftware.smackx.filetransfer.FileTransferManager that accepts parameters of type ( org.jivesoftware.smack.XMPPConnection ).**


Here's the code


    XMPPConnection1 = createObject("java", "org.jivesoftware.smack.XMPPConnection").init("");

    FileManager = createObject("java", "org.jivesoftware.smackx.filetransfer.FileTransferManager").init(XMPPConnection 1);



Someone to help me please ?


Thank you in advance