<div dir="ltr">arto,<br><br>have you considered caching the downloaded file to disk and reading from there using the standard function?<br><br>This would give you the obvious benefit of allowing offline usage and faster requerying.<br>
There isn&#39;t an infinite amount of memory available and having to download images everytime could cause user angst.<br><br>I believe /tmp is mapped to real memory and not the flash drive, so would not cause real problems and wouldn&#39;t be much slower&nbsp; (someone can confirm this?)<br>
<br>Even though it may require a little bit more time to organise a cache file plan, it may be worth it in the end?<br><br>Gary (lcuk on #maemo)<br><br><div class="gmail_quote">On Thu, Oct 16, 2008 at 3:12 PM, Arto Karppinen <span dir="ltr">&lt;<a href="mailto:arto.karppinen@mail.suomi.net">arto.karppinen@mail.suomi.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi, were developing an application which is supposed to show user images<br>
downloaded from web server using xmlrpc. The problem is that we cant<br>
quite figure out how to create a pixbuf from a buffer which contains the<br>
RAW contents of a file.<br>
<br>
Functions like:<br>
<br>
 &nbsp; &nbsp;gdk_pixbuf_new_from_data<br>
 &nbsp; &nbsp;gdk_pixbuf_new_from_inline<br>
 &nbsp; &nbsp;gdk_pixbuf_from_pixdata<br>
<br>
all seem to expect the image to be in some particular format already,<br>
while what we need is more like gdk_pixbuf_new_from_file() which is able<br>
to autodetect everything and just read the file.<br>
<br>
All information that our application has about the image are:<br>
 &nbsp;- Name of file.<br>
 &nbsp;- Size of file.<br>
 &nbsp;- Contents of file.<br>
<font color="#888888"><br>
--<br>
Arto Karppinen<br>
------------------------------<br>
<a href="mailto:arto.karppinen@iki.fi">arto.karppinen@iki.fi</a><br>
_______________________________________________<br>
maemo-developers mailing list<br>
<a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a><br>
<a href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br>
</font></blockquote></div><br></div>