TReKiE / msnp-sharp

Automatically exported from code.google.com/p/msnp-sharp
0 stars 0 forks source link

display images - again #124

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is there a proper - i mean tested, working - way to broadcast my selected 
display image to my contacts?

I have tested a lot of combinations, none of them working.
i've read issue 85, i have tired it with stable_25 version, older versions, 
brand new trunk version, did not help. I have set the AutoSynchronize 
property true.

I have also tried all the protocol versions, 15, 16, 18 on every version of 
libraries.

I have also tried the two way to change display image 
1. mess.Owner.DisplayImage = displayImage
2. mass.Nameserver.StorageService.UpdateProfile(fileImage, 
"MyPhoto")

And all of these combintations. I have a normal (non-but) account, but none 
of my contacts can see any display image for me. With the official Windows 
Live Messenger i could change image perfectly.

So, what's the working, tested way (versions, protocols, methods, settings) 
to show my display picture to my contacts?

Original issue reported on code.google.com by tczol...@gmail.com on 16 Jul 2009 at 12:37

GoogleCodeExporter commented 9 years ago
Please try 110x110 and jpeg images only. Png is not portable :)

Original comment by hepha...@gmail.com on 16 Jul 2009 at 1:48

GoogleCodeExporter commented 9 years ago
Hi,
I've tested with stable_25 version, sometimes it works but sometimes the 
library 
fails.

Original comment by freezing...@gmail.com on 19 Jul 2009 at 5:05

GoogleCodeExporter commented 9 years ago
hi, thank you very much for the fast replies.
Okay, i did it with a jpeg, but not 110x110 before.
I've tried with 110x110 also, but did not work.

Which is the recommended method? version, function, settings then?

Please don't leave me in this stack of shit, it's very important, because this 
library 
is damn cool, but there's this little lack which is annoying and would be 
important.

Original comment by tczol...@gmail.com on 19 Jul 2009 at 5:23

GoogleCodeExporter commented 9 years ago
Hi man,
First of all, please use the code in stable_25 folder.
Both of the following code is ok and you will get your image broadcasted:
1. mess.Owner.DisplayImage = displayImage
2. mass.Nameserver.StorageService.UpdateProfile(fileImage, 
"MyPhoto")

If you use the first one, new displayimage will not store into your space 
profile.
If you use the second one, new displayimage will store into your profile, but, 
if 
the store procedure fails, your displayimage will not be broadcasted.

I am now digging why image broadcasting not work, it nearly drive me mad.

Original comment by freezing...@gmail.com on 20 Jul 2009 at 4:14

GoogleCodeExporter commented 9 years ago
thank you very much :)
me too!

i hope you'll manage it and save the day ;)

Original comment by tczol...@gmail.com on 20 Jul 2009 at 9:11

GoogleCodeExporter commented 9 years ago
Hi,
Just try the latest version in STABLE_25 folder, but I am not sure whether I've 
fixed it.

Original comment by freezing...@gmail.com on 27 Jul 2009 at 4:18

GoogleCodeExporter commented 9 years ago
Now, I can not get remote display pictures.

On Session Create:

contact = GetContact(mail, type)

if (contact.caps >= msnc5)
    emo appid = 11
    dp appid = 12
else
    emo appid = 1
    dp appid = 1

see attachment, remote client is msnc4, messenger 7.0

Original comment by hepha...@gmail.com on 27 Jul 2009 at 8:27

Attachments:

GoogleCodeExporter commented 9 years ago
Can you get it if you changed all appid to 1, or use the previous version?
I found that sometimes we just transfer all of the data, but the displayimage 
just 
not shown.

Original comment by freezing...@gmail.com on 28 Jul 2009 at 4:52

GoogleCodeExporter commented 9 years ago
You can use wireshark and set the filter to tcp.port eq 1863 to track the data 
flow.

Original comment by freezing...@gmail.com on 28 Jul 2009 at 4:54

GoogleCodeExporter commented 9 years ago
okay, but what about broadcasting mine?

Original comment by tczol...@gmail.com on 28 Jul 2009 at 9:10

GoogleCodeExporter commented 9 years ago
I am working on it.

Original comment by freezing...@gmail.com on 29 Jul 2009 at 2:30

GoogleCodeExporter commented 9 years ago
Now you can broadcast you displayimage, but for provision accounts, 
displayimage 
just not work. I've test the provision accounts with official client, it can't 
broadcast displayimage either.

Original comment by freezing...@gmail.com on 3 Aug 2009 at 4:24

GoogleCodeExporter commented 9 years ago
Just check out the stable_25 version. Good luck.

Original comment by freezing...@gmail.com on 3 Aug 2009 at 4:25

GoogleCodeExporter commented 9 years ago
i try in 100X100 and with jpeg format, it work..

messenger.Owner.RoamLiveProperty = RoamLiveProperty.Enabled;
System.Drawing.Image image = System.Drawing.Image.FromFile("c:\image1.jpeg");
MSNPSharp.DisplayImage displayImage = new DisplayImage();                    

displayImage.LoadFile("c:\image1.jpeg");
displayImage.Image = image;

messenger.Nameserver.StorageService.UpdateProfile(displayImage.Image, 
"MyPhoto");
messenger.Owner.DisplayImage = displayImage;

ps: my msn account is renew from msn to msnlive

Original comment by davies.d...@gmail.com on 20 Apr 2010 at 6:18

GoogleCodeExporter commented 9 years ago
Now every version works, I just fixed it.

Original comment by freezing...@gmail.com on 20 Apr 2010 at 8:14