<?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 - base64 encoding - Comments</title>
 <link>http://www.newlc.com/topic-5575</link>
 <description>Comments for &quot;base64 encoding&quot;</description>
 <language>en</language>
<item>
 <title>Re: base64 encoding</title>
 <link>http://www.newlc.com/topic-5575#comment-15197</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;What is the problem you are facing?&lt;br /&gt;&lt;br /&gt;Using base64 the size is increased by 1/3. So if your input length is &amp;quot;x&amp;quot; then the target length should be &amp;quot;4x/3&amp;quot;.&lt;br /&gt;&lt;br /&gt;And TImCodecB64 works fine for both binary (e.g. jpg) and ascii data.&lt;br /&gt;&lt;br /&gt;Encode function will panic if the target size is not sufficient.&lt;/div&gt;</description>
 <pubDate>Mon, 11 Jun 2007 10:15:24 +0200</pubDate>
 <dc:creator>dennis_george</dc:creator>
 <guid isPermaLink="false">comment 15197 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: base64 encoding</title>
 <link>http://www.newlc.com/topic-5575#comment-15196</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;we are finding some trouble using the symbian base64 decoder to decode an image data?&lt;br /&gt;&lt;br /&gt;The same pieace of code works ok for text encoding decoding but for this image it always gives empty destination buffer. &lt;br /&gt;&lt;br /&gt;Is there some ration on size of input and output buffers? like the output buffer must be more then &amp;quot;input+(input/3)&amp;quot; ?&lt;br /&gt;&lt;br /&gt;did some one expreced some trouble while decoing large data all at once like a big image or voice etc. ?&lt;br /&gt;&lt;br /&gt;S.&lt;/div&gt;</description>
 <pubDate>Wed, 09 May 2007 23:31:02 +0200</pubDate>
 <dc:creator>ns.syed</dc:creator>
 <guid isPermaLink="false">comment 15196 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: base64 encoding</title>
 <link>http://www.newlc.com/topic-5575#comment-15195</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Dramatically&amp;nbsp; puzzle me: I encode a string then decode the result, it failed!!&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;:-oTImCodecB64 b64;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;b64.Initialise();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;TPtr8 result(bufferEncoded-&amp;gt;Des() );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(b64.Encode(readbuffer, result) )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;__LOG2(&amp;quot;%d, %d\n&amp;quot;, readbuffer.Length(), encodeLen);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;__LOG1(&amp;quot;content=%S\n&amp;quot;, &amp;amp;result);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;aBuffer.Append(result);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(b64.Decode(result, readbuffer) )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;__LOG2(&amp;quot;%S, org=%S\n&amp;quot;, &amp;amp;result, &amp;amp;readbuffer);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;__LOG(&amp;quot;decode failed\n&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CleanupStack::PopAndDestroy(2);&lt;/div&gt;</description>
 <pubDate>Wed, 31 Jan 2007 13:04:11 +0100</pubDate>
 <dc:creator>daveice</dc:creator>
 <guid isPermaLink="false">comment 15195 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: base64 encoding</title>
 <link>http://www.newlc.com/topic-5575#comment-15194</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;thanks every body, I found it and it work fine&lt;/div&gt;</description>
 <pubDate>Wed, 13 Jul 2005 13:35:03 +0200</pubDate>
 <dc:creator>kaz</dc:creator>
 <guid isPermaLink="false">comment 15194 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: base64 encoding</title>
 <link>http://www.newlc.com/topic-5575#comment-15193</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;yes, the class TImCodecB64 is not documented in the SDK 1.2 and 2.0. &lt;br /&gt;But the imut.lib and IMCVCODC.H do exist on these SDKs and they work fine.&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Wed, 13 Jul 2005 12:28:45 +0200</pubDate>
 <dc:creator>vinay</dc:creator>
 <guid isPermaLink="false">comment 15193 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: base64 encoding</title>
 <link>http://www.newlc.com/topic-5575#comment-15192</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;I used it in 1.2 SDK also&lt;/div&gt;</description>
 <pubDate>Wed, 13 Jul 2005 12:04:50 +0200</pubDate>
 <dc:creator>dennis_george</dc:creator>
 <guid isPermaLink="false">comment 15192 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: base64 encoding</title>
 <link>http://www.newlc.com/topic-5575#comment-15191</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;div class=&quot;quoteheader&quot;&gt;Quote from: kaz&lt;/div&gt;&lt;div class=&quot;quote&quot;&gt;sorry but the class does not exist into the serie60 sdk v2.0 is there any equivalent libs ?&lt;br /&gt;&lt;br /&gt;tnx&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Well, the oldest SDK I checked was 2.1 and it contains this file. Can&amp;#039;t you start using newer SDKs?&lt;br /&gt;&lt;br /&gt;Tote&lt;/div&gt;</description>
 <pubDate>Wed, 13 Jul 2005 10:13:07 +0200</pubDate>
 <dc:creator>tote</dc:creator>
 <guid isPermaLink="false">comment 15191 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: base64 encoding</title>
 <link>http://www.newlc.com/topic-5575#comment-15190</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi,&lt;br /&gt;&lt;br /&gt;TImCodecB64 class is not a documented class.... You can use it .....&lt;br /&gt;&lt;br /&gt;include the header imcvcodc.h and link with imut.lib library&lt;br /&gt;&lt;br /&gt;Dennis&lt;/div&gt;</description>
 <pubDate>Wed, 13 Jul 2005 05:16:40 +0200</pubDate>
 <dc:creator>dennis_george</dc:creator>
 <guid isPermaLink="false">comment 15190 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: base64 encoding</title>
 <link>http://www.newlc.com/topic-5575#comment-15189</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;i wrote the class s60 or symbian dont have a buit in Base 64 coder/decoder you have to provide the code your self.. =) if u realy want a libary or dll you have to wite it your self.... &lt;img src=&quot;/sites/all/modules/smf_filter/smf_smileys/grin.gif&quot; alt=&quot;Grin&quot; border=&quot;0&quot; /&gt;&lt;/div&gt;</description>
 <pubDate>Tue, 12 Jul 2005 23:57:14 +0200</pubDate>
 <dc:creator>Legend</dc:creator>
 <guid isPermaLink="false">comment 15189 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: base64 encoding</title>
 <link>http://www.newlc.com/topic-5575#comment-15188</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;sorry but the class does not exist into the serie60 sdk v2.0 is there any equivalent libs ?&lt;br /&gt;&lt;br /&gt;tnx&lt;/div&gt;</description>
 <pubDate>Tue, 12 Jul 2005 17:37:47 +0200</pubDate>
 <dc:creator>kaz</dc:creator>
 <guid isPermaLink="false">comment 15188 at http://www.newlc.com</guid>
</item>
<item>
 <title>base64 encoding</title>
 <link>http://www.newlc.com/topic-5575#comment-15187</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;for got tell one thing &lt;br /&gt;&lt;br /&gt;TBuf8&amp;lt;340&amp;gt; ret;&lt;br /&gt;&lt;br /&gt;shuld bie buffer Size + 1/3&lt;br /&gt;&lt;br /&gt;in my case&lt;br /&gt;255 + (1/3) =340 &lt;br /&gt;&lt;br /&gt;u can do this dynamic but i havet had the need for it..&lt;/div&gt;</description>
 <pubDate>Fri, 04 Mar 2005 03:16:23 +0100</pubDate>
 <dc:creator>Legend</dc:creator>
 <guid isPermaLink="false">comment 15187 at http://www.newlc.com</guid>
</item>
<item>
 <title>base64 encoding</title>
 <link>http://www.newlc.com/topic-5575#comment-15186</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;This one Works and its fast and easy to use i hope it fits your goal&lt;br /&gt;ihave used for image sending and sound it works superb&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;img src=&quot;/sites/all/modules/smf_filter/smf_smileys/cheesy.gif&quot; alt=&quot;Cheezy&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;void YourClass::EcodeBase(const TBuf8&amp;lt;255&amp;gt; Srt)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; ret.FillZ();&lt;br /&gt;&amp;nbsp; ret.SetLength(0);&lt;br /&gt;&amp;nbsp; TBuf8&amp;lt;64&amp;gt; cvt;&lt;br /&gt;&amp;nbsp; TUint8 fillchar = &#039;=&#039;;&lt;br /&gt;&amp;nbsp; for(int i = 0; i &amp;lt; 26; i++)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; cvt.Append(&#039;A&#039; +i);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; for(int i = 0; i &amp;lt; 26; i++)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; cvt.Append(&#039;a&#039; +i);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; for(int i = 0; i &amp;lt; 10; i++)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; cvt.Append(&#039;0&#039; +i);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; cvt.Append(&#039;+&#039;);&lt;br /&gt;&amp;nbsp; cvt.Append(&#039;/&#039;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; TUint8 c;&lt;br /&gt;&amp;nbsp; for (int i = 0; i &amp;lt; Srt.Length(); ++i)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; c = (Srt[i] &amp;gt;&amp;gt; 2) &amp;amp; 0x3f;&lt;br /&gt;&amp;nbsp; &amp;nbsp; ret.Append(cvt[c]);&lt;br /&gt;&amp;nbsp; &amp;nbsp; c = (Srt[i] &amp;lt;&amp;lt; 4) &amp;amp; 0x3f;&lt;br /&gt;&amp;nbsp; &amp;nbsp; if (++i &amp;lt; Srt.Length())&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c |= (Srt[i] &amp;gt;&amp;gt; 4) &amp;amp; 0x0f;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; ret.Append(cvt[c]);&lt;br /&gt;&amp;nbsp; &amp;nbsp; if (i &amp;lt; Srt.Length())&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c = (Srt[i] &amp;lt;&amp;lt; 2) &amp;amp; 0x3f;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (++i &amp;lt; Srt.Length())&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c |= (Srt[i] &amp;gt;&amp;gt; 6) &amp;amp; 0x03;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ret.Append(cvt[c]);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; else&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ++i;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ret.Append(fillchar);&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; if (i &amp;lt; Srt.Length())&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c = Srt[i] &amp;amp; 0x3f;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ret.Append(cvt[c]);&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; else&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ret.Append(fillchar);&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}&lt;/div&gt;</description>
 <pubDate>Fri, 04 Mar 2005 01:51:15 +0100</pubDate>
 <dc:creator>Legend</dc:creator>
 <guid isPermaLink="false">comment 15186 at http://www.newlc.com</guid>
</item>
<item>
 <title>base64 encoding</title>
 <link>http://www.newlc.com/topic-5575#comment-15185</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;/epoc32/include/imcvcodc.h ==&amp;gt; TImCodecB64 class.&lt;br /&gt;&lt;br /&gt;Tote&lt;/div&gt;</description>
 <pubDate>Wed, 16 Feb 2005 13:06:30 +0100</pubDate>
 <dc:creator>tote</dc:creator>
 <guid isPermaLink="false">comment 15185 at http://www.newlc.com</guid>
</item>
<item>
 <title>base64 encoding</title>
 <link>http://www.newlc.com/topic-5575</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/topic-5575&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/topic-5575#comments</comments>
 <category domain="http://www.newlc.com/forums/nokia-series-60">Nokia S60</category>
 <pubDate>Wed, 16 Feb 2005 10:08:28 +0100</pubDate>
 <dc:creator>indus</dc:creator>
 <guid isPermaLink="false">6297 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
