Subject: file sharing not working with matrix sdk
Hi i am trying to send a file to a chat partner, but i am getting the error" object reference not set to an instance"
that is my code so far. I know i am missing something.
Thanks
- Private WithEvents fm As New FileTransferManager
- Private sid As String = ""
- dim fileinfo as system.io.fileinfo
- dim filename as string=""
- If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
- filename = (OpenFileDialog1.FileName)
- fi = New IO.FileInfo(OpenFileDialog1.FileName)
- 'Dim getfileinfo As String = fi.Length
- End If
- sid = fm.Send(New Matrix.Jid("user@server.com"), filename, "description")
Thanks
This post was edited on 2015-08-16, 14:49 by Alex.