<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: When you should use base64 for images</title>
	<atom:link href="http://www.stoimen.com/blog/2009/04/23/when-you-should-use-base64-for-images/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stoimen.com/blog/2009/04/23/when-you-should-use-base64-for-images/</link>
	<description>web developing</description>
	<lastBuildDate>Mon, 22 Mar 2010 08:57:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rithy</title>
		<link>http://www.stoimen.com/blog/2009/04/23/when-you-should-use-base64-for-images/comment-page-1/#comment-12588</link>
		<dc:creator>Rithy</dc:creator>
		<pubDate>Tue, 16 Mar 2010 04:16:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=538#comment-12588</guid>
		<description>Hi stoimen,

Thank you a lot for your reply and advice!

My image is about 3kb. So I could use it.


Cheer,
Rithy</description>
		<content:encoded><![CDATA[<p>Hi stoimen,</p>
<p>Thank you a lot for your reply and advice!</p>
<p>My image is about 3kb. So I could use it.</p>
<p>Cheer,<br />
Rithy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoimen</title>
		<link>http://www.stoimen.com/blog/2009/04/23/when-you-should-use-base64-for-images/comment-page-1/#comment-12580</link>
		<dc:creator>Stoimen</dc:creator>
		<pubDate>Mon, 15 Mar 2010 11:11:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=538#comment-12580</guid>
		<description>Hi Rithy,

you definitely have to run some tests to be sure which operation is faster. Using base64 is good for small images and multiple requests, i.e. 100 images each 2KB big. Than you&#039;ve so much requests that even with very small images slows down the page.

When you&#039;ve to store images bigger than a &quot;thumb&quot; size it may be not a good idea. For &quot;wallpaper&quot; size images it&#039;s good to store them as progressive JPGs. 

In your case maybe the converting process from image file -&gt; base64 -&gt; http response may not be the best solution.

My advice is to run test with different scenarios that will answer all your questions.

all the best,
stoimen</description>
		<content:encoded><![CDATA[<p>Hi Rithy,</p>
<p>you definitely have to run some tests to be sure which operation is faster. Using base64 is good for small images and multiple requests, i.e. 100 images each 2KB big. Than you&#8217;ve so much requests that even with very small images slows down the page.</p>
<p>When you&#8217;ve to store images bigger than a &#8220;thumb&#8221; size it may be not a good idea. For &#8220;wallpaper&#8221; size images it&#8217;s good to store them as progressive JPGs. </p>
<p>In your case maybe the converting process from image file -> base64 -> http response may not be the best solution.</p>
<p>My advice is to run test with different scenarios that will answer all your questions.</p>
<p>all the best,<br />
stoimen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rithy</title>
		<link>http://www.stoimen.com/blog/2009/04/23/when-you-should-use-base64-for-images/comment-page-1/#comment-12579</link>
		<dc:creator>Rithy</dc:creator>
		<pubDate>Mon, 15 Mar 2010 11:00:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=538#comment-12579</guid>
		<description>Hi,

I&#039;m not sure about the server, currently I have only 1 server and I am not sure how to work with 2 or more databases or servers...

Thanks you. I got it work now. I found that after php wrote the base64 string in a text file, the &#039;+&#039; sign is gone.

But I&#039;ve decided to store as normal image, I&#039;ll encode the normal image into base64 when php load the page.
Because it could be 2 options which can use base64 or normal image and in ie6 doesn&#039;t support base64 image. 

But I&#039;m not sure server will use how much cpu to encode the image...
I&#039;m considering about the usage of upc and ram of the server.

Regards,
Rithy</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m not sure about the server, currently I have only 1 server and I am not sure how to work with 2 or more databases or servers&#8230;</p>
<p>Thanks you. I got it work now. I found that after php wrote the base64 string in a text file, the &#8216;+&#8217; sign is gone.</p>
<p>But I&#8217;ve decided to store as normal image, I&#8217;ll encode the normal image into base64 when php load the page.<br />
Because it could be 2 options which can use base64 or normal image and in ie6 doesn&#8217;t support base64 image. </p>
<p>But I&#8217;m not sure server will use how much cpu to encode the image&#8230;<br />
I&#8217;m considering about the usage of upc and ram of the server.</p>
<p>Regards,<br />
Rithy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoimen</title>
		<link>http://www.stoimen.com/blog/2009/04/23/when-you-should-use-base64-for-images/comment-page-1/#comment-12557</link>
		<dc:creator>Stoimen</dc:creator>
		<pubDate>Fri, 12 Mar 2010 10:38:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=538#comment-12557</guid>
		<description>Hi,

actually it doesn&#039;t matter whether you store the images into a file system or in the database as base64. What will happen with your servers after 10 years storing all those images there? Probably the answer is there will be more and more servers. Well the situation with base64 is the same. The database will become larger and larger, but yet again there&#039;s a solution with clusters and/or more db server, right?

If it&#039;s not working from a text file, that should be some other error, because base64 is just a string. Check for junk data into the text file.

greetings</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>actually it doesn&#8217;t matter whether you store the images into a file system or in the database as base64. What will happen with your servers after 10 years storing all those images there? Probably the answer is there will be more and more servers. Well the situation with base64 is the same. The database will become larger and larger, but yet again there&#8217;s a solution with clusters and/or more db server, right?</p>
<p>If it&#8217;s not working from a text file, that should be some other error, because base64 is just a string. Check for junk data into the text file.</p>
<p>greetings</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rithy</title>
		<link>http://www.stoimen.com/blog/2009/04/23/when-you-should-use-base64-for-images/comment-page-1/#comment-12556</link>
		<dc:creator>Rithy</dc:creator>
		<pubDate>Fri, 12 Mar 2010 10:34:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=538#comment-12556</guid>
		<description>if we save the base64 data into database, I think the database will be down, because the database is used to store other big data. What will happen after 5 or 10 years?
I&#039;ve tried to save it into a text file, but after read it from the text file, it&#039;s not working....

Regards,
Rithy</description>
		<content:encoded><![CDATA[<p>if we save the base64 data into database, I think the database will be down, because the database is used to store other big data. What will happen after 5 or 10 years?<br />
I&#8217;ve tried to save it into a text file, but after read it from the text file, it&#8217;s not working&#8230;.</p>
<p>Regards,<br />
Rithy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoimen</title>
		<link>http://www.stoimen.com/blog/2009/04/23/when-you-should-use-base64-for-images/comment-page-1/#comment-7458</link>
		<dc:creator>Stoimen</dc:creator>
		<pubDate>Thu, 29 Oct 2009 08:15:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=538#comment-7458</guid>
		<description>Well here I used it to &quot;download&quot; the document from the web. On a particular request. So maybe the document becomes too big to be sent on the server. You should check the availability to upload via HTTP such large documents. If not you&#039;d try something like FTP or whatever?

greetings</description>
		<content:encoded><![CDATA[<p>Well here I used it to &#8220;download&#8221; the document from the web. On a particular request. So maybe the document becomes too big to be sent on the server. You should check the availability to upload via HTTP such large documents. If not you&#8217;d try something like FTP or whatever?</p>
<p>greetings</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Satish</title>
		<link>http://www.stoimen.com/blog/2009/04/23/when-you-should-use-base64-for-images/comment-page-1/#comment-7453</link>
		<dc:creator>Satish</dc:creator>
		<pubDate>Thu, 29 Oct 2009 07:40:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=538#comment-7453</guid>
		<description>I face a similar problem. I uploaded a document with multiple images. This document is sent back to the server for processing using an Ajax call. 

I have used Base64 for compressing the uploaded document. 

Issue: The document size becomes too bulky after Base64 compression &amp; hence fails when the document is fetched.

Any thoughts on this pls.

regards,
Satish</description>
		<content:encoded><![CDATA[<p>I face a similar problem. I uploaded a document with multiple images. This document is sent back to the server for processing using an Ajax call. </p>
<p>I have used Base64 for compressing the uploaded document. </p>
<p>Issue: The document size becomes too bulky after Base64 compression &amp; hence fails when the document is fetched.</p>
<p>Any thoughts on this pls.</p>
<p>regards,<br />
Satish</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrii borodin</title>
		<link>http://www.stoimen.com/blog/2009/04/23/when-you-should-use-base64-for-images/comment-page-1/#comment-2742</link>
		<dc:creator>andrii borodin</dc:creator>
		<pubDate>Wed, 10 Jun 2009 08:04:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=538#comment-2742</guid>
		<description>Sounds strange! isn&#039;t it, you cannot have the html response smaller than the http (multiple) responses of the images. This is really strange to me, I doubt the tests you ran.</description>
		<content:encoded><![CDATA[<p>Sounds strange! isn&#8217;t it, you cannot have the html response smaller than the http (multiple) responses of the images. This is really strange to me, I doubt the tests you ran.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
