<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rabidGadfly &#187; base64</title>
	<atom:link href="http://rabidgadfly.com/tag/base64/feed/" rel="self" type="application/rss+xml" />
	<link>http://rabidgadfly.com</link>
	<description>Simple Solutions to Nagging Coding Problems</description>
	<lastBuildDate>Wed, 19 Oct 2011 13:43:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Update ColdFusion Query Columns With JavaCast</title>
		<link>http://rabidgadfly.com/2009/10/update-coldfusion-query-columns-with-javacast/</link>
		<comments>http://rabidgadfly.com/2009/10/update-coldfusion-query-columns-with-javacast/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 16:08:15 +0000</pubDate>
		<dc:creator>rabidgadfly</dc:creator>
				<category><![CDATA[coldFusion]]></category>
		<category><![CDATA[base64]]></category>
		<category><![CDATA[query]]></category>

		<guid isPermaLink="false">http://www.rabidgadfly.com/?p=119</guid>
		<description><![CDATA[I recently found myself in need of a way to convert a Binary data column into Base64 encoded data when returning a query. After a quick Google, I was directed to Ben Nadel&#8217;s post &#8220;Updating Columns In An Existing ColdFusion Query Object&#8221; which details how to use javaCast to update a ColdFusion query. From there, [...]]]></description>
			<content:encoded><![CDATA[<p>I recently found myself in need of a way to convert a Binary data column into Base64 encoded data when returning a query. After a quick Google, I was directed to Ben Nadel&#8217;s post &#8220;<a href="http://www.bennadel.com/blog/1708-Ask-Ben-Updating-Columns-In-An-Existing-ColdFusion-Query-Object.htm">Updating Columns In An Existing ColdFusion Query Object</a>&#8221; which details how to use javaCast to update a ColdFusion query.</p>
<p>From there, I just needed to add the small extra step of Base64 encoding and my query was ready to go.</p>
<pre class="brush: coldfusion; title: ; notranslate">
&lt;cfloop  query=&quot;q&quot;&gt;
    &lt;cfset base64Data = toBase64(q.my_binary_data) /&gt;
    &lt;cfset q[&quot;my_binary_data&quot;][q.currentRow] = javaCast(&quot;string&quot;,'#base64Data#') /&gt;
&lt;/cfloop&gt;
</pre>
<p>This is not the first time I found a useful solution on Ben&#8217;s site. If you use ColdFusion, you should definitely <a href="http://www.bennadel.com/">check it out</a>. He has some great, easy-to-understand, posts on many useful topics.</p>
]]></content:encoded>
			<wfw:commentRss>http://rabidgadfly.com/2009/10/update-coldfusion-query-columns-with-javacast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

