<div dir="ltr"><div class="gmail_quote"><div>Can curl cache received image? How about libsoup? How to install libsoup on my 770? (I could not find libsoup in my build, libcurl is there.) thanks.<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Date: Mon, 6 Oct 2008 08:19:30 +0200<br>
From: Thomas Perl &lt;<a href="mailto:thp@perli.net">thp@perli.net</a>&gt;<br>
Subject: Re: download and display image, please help.<br>
To: <a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a><br>
Message-ID: &lt;20081006081930.525fba5a@macbook&gt;<br>
Content-Type: text/plain; charset=US-ASCII<br>
<br>
On Mon, 6 Oct 2008 01:50:52 +0200<br>
&quot;koos vriezen&quot; &lt;<a href="mailto:koos.vriezen@gmail.com">koos.vriezen@gmail.com</a>&gt; wrote:<br>
&gt; 2008/10/2 maemo developer &lt;<a href="mailto:770810dev@gmail.com">770810dev@gmail.com</a>&gt;:<br>
&gt; &gt; I am new to maemo/gtk/gnome etc. I try to build an application that<br>
&gt; &gt; can run on nokia 770. One simple thing this application needs to do<br>
&gt; &gt; is to download graphic from internet and display the graphic on the<br>
&gt; &gt; device. I got the image by using curl library, now how to display<br>
&gt; &gt; the image? Tried to save the image to a file than display it using<br>
&gt; &gt; set_image_from_file, it worked but very slow. how to display the<br>
&gt; &gt; graphic from image stream in memory directly? gtkhtml can&#39;t help<br>
&gt; &gt; right? It doesn&#39;t seem able to display image. Thanks.<br>
&gt;<br>
&gt; For a start, you can use GdkPixbufLoader to write the data from your<br>
&gt; network stream directly.<br>
<br>
In addition, you might decide to use libsoup instead of libcurl, as the<br>
former is GLib-based and might be easier to integrate in your<br>
GTK-based app (i.e. GObject signals to connect to when parts have<br>
finished downloading).<br>
<br>
<br>
Thomas<br>
<br>
</blockquote></div><br></div>