Closed EvaniRam closed 10 years ago
You don't need to provide an IP address. Your server will automatically be located by the domain portion of the user's JabberID.
how can i get the File path into the textbox for OutFileTransfer method. Also i am getting the following error :
2014-11-08 16:23:19:337 FileTransferDemo[6579:60b] AppDelegate: Stream disconnected with error: (null)
I have no idea what you're asking.
Hello EvaniRam, For testing single file u can drag any file in project and fetch file from NSBundle like... NSString sampleFilePath = [[NSBundle mainBundle] pathForResource:@"Image" ofType:@"png"]; NSData htmlData = [NSData dataWithContentsOfFile:filePath]; For send dynamic file you can select dynamic file from gallery and set dynamic name By UIImagePickerController.
These types of questions are more well-suited for the XMPPFramework Google Group. You're likely to get more answers there.
thanks @jonstaff , i have a small issue while i am trying to send file to other user. my log is showing the following errors:
2014-11-10 15:23:16:487 FileTransferDemo[2584:807] XMPPOutgoingFileTransfer: startFileTransfer: 2014-11-10 15:23:16:487 FileTransferDemo[2584:807] You messed something up: Error Domain=XMPPOutgoingFileTransferErrorDomain Code=-1 "You must be connected to send a file" UserInfo=0x170460f00 {NSLocalizedDescription=You must be connected to send a file}
i was able to get the presence from other user but the file transfer fails with error : "You must be connected to send a file" .
Hey, i am new to ios and xmpp framework , i am using openfire as the server and would to connect to my server.Where should i give the server ip address in your project.