Need Help in using gupnp_device_info_get_icon_url



Hi All,

   I am new to this community , I am trying to develop gupnp based application (Client , server) . From server side I am exposing the iconlist for device xml like below ,

<iconList>
                        <icon>
                                <mimetype>image/png</mimetype>
                                <width>120</width>
                                <height>120</height>
                                <depth>32</depth>
                                <url>/images.png</url>
                        </icon>
                </iconList>

, from client I am  trying to get this icon using api , gupnp_device_info_get_icon_url()
when I run my client code I am able to see the http://localhost:port/image.png getting displayed. But I need to save this png file , as per the gupnp_device_info_get_icon_url api help , I could see the char** mimetype :  The location where to store the the format of the returned icon , so I used it in following way ,

a = gupnp_device_info_get_icon_url(info,"image/png",32,120,120,1,&b,&m,&y,&c);

where b is a char* string having the path (where to store the png).

, now when I run the code , i am not able see png file getting transferred. Can someone help me to understand this please?

Thanks & Regards,
Badri


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]