Re: Need Help in using gupnp_device_info_get_icon_url
- From: Jens Georg <mail jensge org>
- To: Jussi Kukkonen <jussi kukkonen intel com>
- Cc: gupnp-list gnome org
- Subject: Re: Need Help in using gupnp_device_info_get_icon_url
- Date: Tue, 01 Oct 2013 10:08:06 +0200
On Di, 2013-10-01 at 10:58 +0300, Jussi Kukkonen wrote:
On 1 October 2013 07:54, badrichandi gmail com <badrichandi gmail com> wrote:
, 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).
No, a is the url of the icon. b is the mimetype. The documentation
could be clearer but this is what it tries to say.
Here's some example code that uses libsoup to download the icon and
store it in a file:
https://github.com/phako/korva/blob/master/server/upnp/korva-upnp-device.c#L647
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]