<?xml version="1.0" encoding="utf-8"?>

			<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://web.resource.org/cc/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">

			<channel>
			<title>Dave Ferguson&apos;s Blog - Base64</title>
			<link>http://blog.dkferguson.com/index.cfm</link>
			<description>Things I have figured out while learning to type.</description>
			<language>en-us</language>
			<pubDate>Sat, 18 May 2013 11:07:16 -1200</pubDate>
			<lastBuildDate>Fri, 14 May 2010 23:41:00 -1200</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>dave@dkferguson.com</managingEditor>
			<webMaster>dave@dkferguson.com</webMaster>
			<itunes:subtitle></itunes:subtitle>
			<itunes:summary></itunes:summary>
			<itunes:category text="Technology" />
			<itunes:category text="Technology">
				<itunes:category text="Podcasting" />
			</itunes:category>
			<itunes:category text="Technology">
				<itunes:category text="Tech News" />
			</itunes:category>
			<itunes:keywords></itunes:keywords>
			<itunes:author></itunes:author>
			<itunes:owner>
				<itunes:email>dave@dkferguson.com</itunes:email>
				<itunes:name></itunes:name>
			</itunes:owner>
			
			<itunes:explicit>no</itunes:explicit>
			
			<item>
				<title>Base64 Image Converter - CFBuilder Extension</title>
				<link>http://blog.dkferguson.com/index.cfm/2010/5/14/Base64-Image-Converter--CFBuilder-Extension</link>
				<description>
				
				I took all that Base64 image conversion stuff I have been talking about and turned it into a CFBuilder extension. I also submitted it to the CFBuilder extension contest.  


Review of extension by Ray Camden: &lt;A href=&quot;http://www.coldfusionjedi.com/index.cfm/2010/5/7/CFBuilder-Contest-Base64-Image-Converter&quot;&gt;CFBuilder Contest: Base64 Image Converter&lt;/A&gt;

Get the Extension: &lt;A href=&quot;http://base64imageconverter.riaforge.org/&quot;&gt;http://base64imageconverter.riaforge.org/&lt;/A&gt;


Till next time... 

--Dave 
				</description>
				
				<category>ColdFusion Bulder</category>
				
				<category>Base64</category>
				
				<pubDate>Fri, 14 May 2010 23:41:00 -1200</pubDate>
				<guid>http://blog.dkferguson.com/index.cfm/2010/5/14/Base64-Image-Converter--CFBuilder-Extension</guid>
				
				
			</item>
			
			<item>
				<title>All your base64 are not equal</title>
				<link>http://blog.dkferguson.com/index.cfm/2010/4/27/All-your-base64-are-not-equal</link>
				<description>
				
				Yesterday I blogged about a base64 image creator I built.  Today I was working to do more image conversion to base64 for my project.  I quickly ran into an issue on my ColdFusion 9 server.

Source image&lt;br&gt;&lt;img src=&quot;http://www.jqtouch.com/preview/themes/jqt/img/grayButton.png&quot;&gt;

I was using this code to get the base64 of the image:

&lt;code&gt;
&lt;cfscript&gt;
	myImg = imageRead(&apos;grayButton.png&apos;);
	writeDump(toBase64(myImg));
&lt;/cfscript&gt;
&lt;/code&gt;

But it threw this error:
&lt;code&gt;
The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code.

Null Pointers are another name for undefined values. 
&lt;/code&gt;


I was using this method because &quot;imageWriteBase64()&quot; only writes out to a file. I have no use / need / or want for a file.  I want the result.  So, using ColdFusion 9 I was able to avoid writing a file to the disk but still get the result.  The solution utilizes the in-memory file system.  

&lt;code&gt;
&lt;cfscript&gt;
	myImg = imageRead(&apos;grayButton.png&apos;);
	ImageWriteBase64(myImg,&quot;ram:///Base64.txt&quot;,&quot;png&quot;,&quot;yes&quot;, true);	
	a = fileRead(&quot;ram:///Base64.txt&quot;);
	fileDelete(&quot;ram:///Base64.txt&quot;);
	writeDump(a);
&lt;/cfscript&gt;
&lt;/code&gt;

This solution seems totally wrong to me.  First, why does toBase64() throw a null error.  The source is obviously good as imageWriteBase64() can process it.  Also, why is the only possible result from imageWriteBase64() is to write a file.  Granted the function name contains imageWrite but it still seems wrong.

Till next time...

--Dave 
				</description>
				
				<category>Base64</category>
				
				<pubDate>Tue, 27 Apr 2010 23:30:00 -1200</pubDate>
				<guid>http://blog.dkferguson.com/index.cfm/2010/4/27/All-your-base64-are-not-equal</guid>
				
				
			</item>
			
			<item>
				<title>Creating Base64 images with ColdFusion</title>
				<link>http://blog.dkferguson.com/index.cfm/2010/4/26/Creating-Base64-images-with-ColdFusion</link>
				<description>
				
				I have been working on recreating a website to make it iPhone compliant.  In doing this I have been investigating numerous ways to reduce calls to the server.  In some demo code I had I saw an image load using a Base64 image.  This intrigued me and I investigated this further.  

I was able to convert all the navigational images in the site to Base64.  This reduced the overall loading call count from 300 to 5.  However, the CSS file was much larger. But even still, the overall load time was reduced by over 50%.

There are numerous advantages and disadvantages do using this technique.  The first large one is browser support.  Since I was targeting the iPhone, this method works fine.  However, IE only supports this with v8 and limited support at that.  Read more about the pros/cons &lt;A href=&quot;http://en.wikipedia.org/wiki/Data_URI_scheme&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.  [More]
				</description>
				
				<category>Projects</category>
				
				<category>ColdFusion 9</category>
				
				<category>Base64</category>
				
				<pubDate>Mon, 26 Apr 2010 17:17:00 -1200</pubDate>
				<guid>http://blog.dkferguson.com/index.cfm/2010/4/26/Creating-Base64-images-with-ColdFusion</guid>
				
				
			</item>
			</channel></rss>