TReKiE / msnp-sharp

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

Problem with custom emoticon received #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi all!
I have a problem when I receive a custom emoticon from other contact.
For example in your code there is this method:

void Conversation_MSNObjectDataTransferCompleted(object sender, 
MSNObjectDataTransferCompletedEventArgs e)
        {
            //This is just an example to tell you how to get the emoticon 
data.
            FileStream fs = new FileStream("emoicon_rcv_example.png", 
FileMode.OpenOrCreate);
            byte[] byt = new byte[e.ClientData.OpenStream().Length];
            e.ClientData.OpenStream().Seek(0, SeekOrigin.Begin);
            e.ClientData.OpenStream().Read(byt, 0, byt.Length);
            fs.Write(byt, 0, byt.Length);
            fs.Close();
        }

The problem is that the size of the file emoicon_rcv_example.png created is 
0 KB.

How can I solve this problem?

Lele from Italy

Original issue reported on code.google.com by daniele....@gmail.com on 25 Oct 2008 at 10:18

GoogleCodeExporter commented 9 years ago
Hi, Lele
  Check e.Aborted == true? If ture, the data transfer failed.

Original comment by freezing...@gmail.com on 25 Oct 2008 at 12:34

GoogleCodeExporter commented 9 years ago
e.Aborted is false!
e.ClientData.Size == 23532
e.DataStream.Length == 0

-----------------------------------

I have a problem also with send custom emoticons.
When i click TestEmoticonButton in your DotMsnClient, in my Windows Live 
Messenger 
arrive a blank emoticon.

Original comment by daniele....@gmail.com on 25 Oct 2008 at 1:20

GoogleCodeExporter commented 9 years ago
what version of Windows Live Messenger are you using?

Original comment by freezing...@gmail.com on 26 Oct 2008 at 2:59

GoogleCodeExporter commented 9 years ago
Windows Live Messenger 2008  Build 8.5.1302.1018

Original comment by daniele....@gmail.com on 26 Oct 2008 at 9:20

GoogleCodeExporter commented 9 years ago
Sorry, now i can send e receive custom emoticon!!
Perhaps I had some network's problems when I have tested your example.
Sorry!

Original comment by daniele....@gmail.com on 31 Oct 2008 at 4:15

GoogleCodeExporter commented 9 years ago
Ahaa~ good luck

Original comment by freezing...@gmail.com on 1 Nov 2008 at 7:07

GoogleCodeExporter commented 9 years ago

Original comment by hepha...@gmail.com on 18 Nov 2008 at 9:24

GoogleCodeExporter commented 9 years ago

Original comment by hepha...@gmail.com on 23 Jan 2009 at 5:41