<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - How to download a picture from internet and display it gradually? - Comments</title>
 <link>http://www.newlc.com/forum/how-download-picture-internet-and-display-it-gradually</link>
 <description>Comments for &quot;How to download a picture from internet and display it gradually?&quot;</description>
 <language>en</language>
<item>
 <title>Re: How to download a picture from internet and display it gradu</title>
 <link>http://www.newlc.com/forum/how-download-picture-internet-and-display-it-gradually#comment-40073</link>
 <description>&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;If the file is partially downloaded, can the file be displayed partially? If the file is incomplete, can it be converted to a bitmap?&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
Oops, I misunderstood your requirement. I don&#039;t think that&#039;s possible. Do you want to partially download/display the image, as it&#039;s quite big???&lt;br /&gt;
In my case, I&#039;m downloading the images from my own server. So, I have put logic of resizing, etc of images in my server. Hence, for mobile, images are always small, and they are downloaded quite fast. But, if it&#039;s not ur server, then client has to do it. But I can think of only fully downloading the image and displaying it. I can&#039;t think of any way where partial download/display is possible &lt;div class=&quot;bb-quote&quot;&gt;&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;img src=&quot;/sites/all/modules/smileys/packs/example/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; /&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;/p&gt;</description>
 <pubDate>Mon, 23 Jul 2007 15:23:48 +0200</pubDate>
 <dc:creator>singhgupi</dc:creator>
 <guid isPermaLink="false">comment 40073 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How to download a picture from internet and display it gradu</title>
 <link>http://www.newlc.com/forum/how-download-picture-internet-and-display-it-gradually#comment-40065</link>
 <description>&lt;p&gt;To singhgupi,&lt;/p&gt;

&lt;p&gt;Thanks for your reply.&lt;/p&gt;

&lt;p&gt;But I have something I can&#039;t quite understand. If the file is partially downloaded, can the file be displayed partially? If the file is incomplete, can it be converted to a bitmap?&lt;/p&gt;</description>
 <pubDate>Mon, 23 Jul 2007 10:16:02 +0200</pubDate>
 <dc:creator>curiosity</dc:creator>
 <guid isPermaLink="false">comment 40065 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How to download a picture from internet and display it gradu</title>
 <link>http://www.newlc.com/forum/how-download-picture-internet-and-display-it-gradually#comment-40060</link>
 <description>&lt;p&gt;Well, its a very generic question. Let me answer with what I did for this kind of thing.&lt;br /&gt;
There are two problems:&lt;br /&gt;
1. Download the photo from internet.&lt;br /&gt;
Say for example, your photo is at &lt;a href=&quot;http://www.xyz.com/my_photo.jpg.&quot;&gt;www.xyz.com/my_photo.jpg.&lt;/a&gt; Now you need two things for this:&lt;br /&gt;
 a)Http Client to do a GET on this address --&gt; Pls see example HttpEngine widely available for symbian. I guess it&#039;s in one of s60 examples too.You will hae to do IssueHTTPGetL with the address of ur image.&lt;br /&gt;
 b)ImageDecoder to convert jpg/gif/bla bla format to Bitmap, wich you can embed in symbian controls. --&gt; See example in OpenGLEx in S60Examples.&lt;/p&gt;

&lt;p&gt;2. Display that photo on device&lt;br /&gt;
this depends on what control you use. Now as you mentioned, like IE does, so the best wud be CEikImage.&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;In .hpp&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CEikImage*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iFriendImage;&lt;br /&gt;&lt;br /&gt;in Your view .cpp&lt;br /&gt;&amp;nbsp;&amp;nbsp; -In ConstruclL&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Initialing Image Control&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iFriendImage = new (ELeave) CEikImage();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iFriendImage-&amp;gt;SetContainerWindowL(*this);&lt;br /&gt;&lt;br /&gt;where you wanna show the image:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Friends Picture&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iFriendImage-&amp;gt;SetBitmap(bitmap);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iFriendImage-&amp;gt;SetPictureOwnedExternally(ETrue);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iFriendImage-&amp;gt;MakeVisible(ETrue);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
You can see API docs for more on CEikImage.&lt;/p&gt;

&lt;p&gt;Br&lt;br /&gt;
G;p&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Mon, 23 Jul 2007 09:16:47 +0200</pubDate>
 <dc:creator>singhgupi</dc:creator>
 <guid isPermaLink="false">comment 40060 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How to download a picture from internet...</title>
 <link>http://www.newlc.com/forum/how-download-picture-internet-and-display-it-gradually#comment-40059</link>
 <description>&lt;p&gt;As far as I know there is no direct support for something like this in Symbian. All the classes that deal with pictures that I know of want to process a complete picture.&lt;/p&gt;

&lt;p&gt;I guess this gradual picture display will be very complicated to program...&lt;/p&gt;</description>
 <pubDate>Mon, 23 Jul 2007 09:06:01 +0200</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 40059 at http://www.newlc.com</guid>
</item>
<item>
 <title>How to download a picture from internet and display it gradually?</title>
 <link>http://www.newlc.com/forum/how-download-picture-internet-and-display-it-gradually</link>
 <description>&lt;p&gt;I&#039;d like to download a picture from internet and display it gradually, just like what the Internet Explorer in Windows usually does. It&#039;s like streaming. How to realize this?&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/forum/how-download-picture-internet-and-display-it-gradually&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/forum/how-download-picture-internet-and-display-it-gradually#comments</comments>
 <category domain="http://www.newlc.com/forums/2d-3d-graphics">Bitmaps and Graphics</category>
 <pubDate>Mon, 23 Jul 2007 05:45:43 +0200</pubDate>
 <dc:creator>curiosity</dc:creator>
 <guid isPermaLink="false">18419 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
