Hi Loic,

With using the getplayerinfo packet to retrieve the opponents images. The
parameter for this packet is packet, so how will this be unique
For each opponent? I originally thought of using the getplayerImage packet,
but Mike Young said something about the image being in binary?
Is it possible to put the url string in the image field (of the poker
server) so that it returns the url string to the client?

def __init__(self, *args, **kwargs):
        self.image = kwargs.get("image", '')
        self.image_type = kwargs.get("image_type", 'image/png')
        PacketSerial.__init__(self, *args, **kwargs)

Hope what I'm asking is understandable :)

Thanks in advance

Michael


-----Original Message-----
From: Loic Dachary [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 25, 2007 2:52 PM
To: Michael Oschmann
Cc: [email protected]
Subject: Re: [Pokersource-users] (no subject)

"Michael Oschmann" <[EMAIL PROTECTED]> writes:

>    Hi Loic,
>
>
>    How do I retrieve opponents images? As the URL string?  Is there a
>    packet that I'd add the opponents serial and send?
>

        That's your choice really. There are two ways of dealing with
this.  You can either use the 'url' field that is located in the
PlayerInfo packet.  You can get this packet using the GetPlayerInfo
packet. Or you can use the image and image_type fields of the
PlayerImage packet. You can get this packet using the GetPlayerImage
packet. The PlayerImage packet contains the image data and is suitable
if you want the image data to be stored in the poker database. If the
image data is not stored in the poker database, the 'url' field is enough.

        Cheers,

-- 
+33 1 76 60 72 81  Loic Dachary mailto:[EMAIL PROTECTED]
http://dachary.org/loic/gpg.txt sip:[EMAIL PROTECTED]
Latitude: 48.86962325498033 Longitude: 2.3623046278953552


_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users

Reply via email to