Subject: problem with iq query
Hi! I am using the below code to query user picture but its not returning anything and its also not raising error.
I know the other way of doing it but i want to use this one because i want to retreive user picture whiles querying roster items.
Please what am i missing?
Thanks
- Dim re As New VcardIq(New Matrix.Jid(e.RosterItem.Jid), New Matrix.Jid(xc.Username), IqType.Get)
- xc.IqFilter.SendIqSynchronous(re, 2000)
- If re.Type = IqType.Result Then
- Dim vc As Vcard = TryCast(re.Query, Vcard)
- mt.TileImage = vc.Photo.Image
- End If
I know the other way of doing it but i want to use this one because i want to retreive user picture whiles querying roster items.
Please what am i missing?
Thanks
This post was edited on 2015-08-16, 13:53 by Alex.