<?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: Getting Started With Adobe AIR And SQLite (And Getting Around The Bugs)</title>
	<atom:link href="http://blog.affirmix.com/2009/01/28/getting-started-with-adobe-air-and-sqlite-and-avoiding-the-problems/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.affirmix.com/2009/01/28/getting-started-with-adobe-air-and-sqlite-and-avoiding-the-problems/</link>
	<description>Flash Platform and Dreamweaver Stuff</description>
	<lastBuildDate>Thu, 08 Apr 2010 00:19:46 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Danyul</title>
		<link>http://blog.affirmix.com/2009/01/28/getting-started-with-adobe-air-and-sqlite-and-avoiding-the-problems/comment-page-1/#comment-2353</link>
		<dc:creator>Danyul</dc:creator>
		<pubDate>Sat, 03 Apr 2010 18:26:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.affirmix.com/?p=101#comment-2353</guid>
		<description>Louis says thanks now that I&#039;m able to make sense of this!

lol!!!1one!</description>
		<content:encoded><![CDATA[<p>Louis says thanks now that I&#8217;m able to make sense of this!</p>
<p>lol!!!1one!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Al</title>
		<link>http://blog.affirmix.com/2009/01/28/getting-started-with-adobe-air-and-sqlite-and-avoiding-the-problems/comment-page-1/#comment-2350</link>
		<dc:creator>Al</dc:creator>
		<pubDate>Wed, 31 Mar 2010 13:47:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.affirmix.com/?p=101#comment-2350</guid>
		<description>Hi

Love the tut about blobs and bitmaps, but am not sure how to get this actually running

Please could you explain it more because I am a dummy when it comes to image 2 bytearray stuff and I get lost the moment I read to code.

Pls help :)

Thanks</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Love the tut about blobs and bitmaps, but am not sure how to get this actually running</p>
<p>Please could you explain it more because I am a dummy when it comes to image 2 bytearray stuff and I get lost the moment I read to code.</p>
<p>Pls help <img src='http://blog.affirmix.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JP</title>
		<link>http://blog.affirmix.com/2009/01/28/getting-started-with-adobe-air-and-sqlite-and-avoiding-the-problems/comment-page-1/#comment-2341</link>
		<dc:creator>JP</dc:creator>
		<pubDate>Tue, 23 Feb 2010 19:21:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.affirmix.com/?p=101#comment-2341</guid>
		<description>This was incredibly helpful!  Thank you so much for posting this.</description>
		<content:encoded><![CDATA[<p>This was incredibly helpful!  Thank you so much for posting this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Solution Hacker &#187; Adobe Air with SQLite database</title>
		<link>http://blog.affirmix.com/2009/01/28/getting-started-with-adobe-air-and-sqlite-and-avoiding-the-problems/comment-page-1/#comment-2178</link>
		<dc:creator>Solution Hacker &#187; Adobe Air with SQLite database</dc:creator>
		<pubDate>Thu, 02 Jul 2009 07:08:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.affirmix.com/?p=101#comment-2178</guid>
		<description>[...] Get started with adobe air and sqlite (1/28/2009) [...]</description>
		<content:encoded><![CDATA[<p>[...] Get started with adobe air and sqlite (1/28/2009) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jubal Early</title>
		<link>http://blog.affirmix.com/2009/01/28/getting-started-with-adobe-air-and-sqlite-and-avoiding-the-problems/comment-page-1/#comment-2176</link>
		<dc:creator>Jubal Early</dc:creator>
		<pubDate>Fri, 19 Jun 2009 11:18:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.affirmix.com/?p=101#comment-2176</guid>
		<description>Ok, nevermind.  Apparently BLOB type does not correspond to BLOB column affinity.  Fixed by setting the data column where the ByteArray is bound to to NONE type (or blank).</description>
		<content:encoded><![CDATA[<p>Ok, nevermind.  Apparently BLOB type does not correspond to BLOB column affinity.  Fixed by setting the data column where the ByteArray is bound to to NONE type (or blank).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jubal Early</title>
		<link>http://blog.affirmix.com/2009/01/28/getting-started-with-adobe-air-and-sqlite-and-avoiding-the-problems/comment-page-1/#comment-2175</link>
		<dc:creator>Jubal Early</dc:creator>
		<pubDate>Fri, 19 Jun 2009 03:31:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.affirmix.com/?p=101#comment-2175</guid>
		<description>I had been having troubles with this (Bitmap-&gt;BitmapData-&gt;ByteArray-&gt;db and back).

The way I got it working was to save the image to the db for the most part as you did, except for base64 encoding it before saving (not sure way, guessing has to do with where somewhere along the way ByteArray is converted to an actionscript String, though not sure on String charset).  On retrieving, base64 decode to ByteArray, then use Loader.loadBytes to load the image.

Works for me anyways.

If anyone can figure why I had to encode to base64 (or maybe why I don&#039;t need to), and answer would be much appreciated.</description>
		<content:encoded><![CDATA[<p>I had been having troubles with this (Bitmap-&gt;BitmapData-&gt;ByteArray-&gt;db and back).</p>
<p>The way I got it working was to save the image to the db for the most part as you did, except for base64 encoding it before saving (not sure way, guessing has to do with where somewhere along the way ByteArray is converted to an actionscript String, though not sure on String charset).  On retrieving, base64 decode to ByteArray, then use Loader.loadBytes to load the image.</p>
<p>Works for me anyways.</p>
<p>If anyone can figure why I had to encode to base64 (or maybe why I don&#8217;t need to), and answer would be much appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chiranjeevi</title>
		<link>http://blog.affirmix.com/2009/01/28/getting-started-with-adobe-air-and-sqlite-and-avoiding-the-problems/comment-page-1/#comment-2172</link>
		<dc:creator>Chiranjeevi</dc:creator>
		<pubDate>Mon, 08 Jun 2009 16:35:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.affirmix.com/?p=101#comment-2172</guid>
		<description>Hi Andrew
Nice explanation... Just I planned to do some thing similar to the Microsoft Thumbs.db approach as a part of my Adobe AIR application, and just tried to find out how to store the bitmap data into an SQL DB. And thus got this of your simple explanation... Nice to be read. I am going to Implement it. I like the way you did.

thanks A lot.</description>
		<content:encoded><![CDATA[<p>Hi Andrew<br />
Nice explanation&#8230; Just I planned to do some thing similar to the Microsoft Thumbs.db approach as a part of my Adobe AIR application, and just tried to find out how to store the bitmap data into an SQL DB. And thus got this of your simple explanation&#8230; Nice to be read. I am going to Implement it. I like the way you did.</p>
<p>thanks A lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://blog.affirmix.com/2009/01/28/getting-started-with-adobe-air-and-sqlite-and-avoiding-the-problems/comment-page-1/#comment-2169</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Mon, 08 Jun 2009 03:30:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.affirmix.com/?p=101#comment-2169</guid>
		<description>Hi Andrew, i&#039;m interesting in your example for Blobs and Bitmaps, i&#039;m a novice with Adobe Air...</description>
		<content:encoded><![CDATA[<p>Hi Andrew, i&#8217;m interesting in your example for Blobs and Bitmaps, i&#8217;m a novice with Adobe Air&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Odri</title>
		<link>http://blog.affirmix.com/2009/01/28/getting-started-with-adobe-air-and-sqlite-and-avoiding-the-problems/comment-page-1/#comment-1710</link>
		<dc:creator>Andrew Odri</dc:creator>
		<pubDate>Tue, 19 May 2009 17:41:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.affirmix.com/?p=101#comment-1710</guid>
		<description>Hey Chris, no, I have never used SQLite for storing sounds, although it shouldn&#039;t be too hard from what I can tell. The &lt;a href=&quot;http://livedocs.adobe.com/flex/3/langref/flash/media/Sound.html#extract()&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;Sound.extract()&lt;/a&gt; function will allow you to get a ByteArray of the sound, which is exactly what the encoder.encode(image.bitmapData) line does in the picture sample.

In order to read the sound from the database, I think it will be a different story. My guess would be to write the ByteArray to a FileStream using &lt;a href=&quot;http://livedocs.adobe.com/flex/3/langref/flash/filesystem/FileStream.html#writeBytes()&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;FileStream.writeBytes()&lt;/a&gt;, save the stream as a temporary file, then load the file stream using URLRequest. Although I am sure there is a more elegant way of doing this using an in memory file reference...</description>
		<content:encoded><![CDATA[<p>Hey Chris, no, I have never used SQLite for storing sounds, although it shouldn&#8217;t be too hard from what I can tell. The <a href="http://livedocs.adobe.com/flex/3/langref/flash/media/Sound.html#extract()" target="_blank" rel="nofollow">Sound.extract()</a> function will allow you to get a ByteArray of the sound, which is exactly what the encoder.encode(image.bitmapData) line does in the picture sample.</p>
<p>In order to read the sound from the database, I think it will be a different story. My guess would be to write the ByteArray to a FileStream using <a href="http://livedocs.adobe.com/flex/3/langref/flash/filesystem/FileStream.html#writeBytes()" target="_blank" rel="nofollow">FileStream.writeBytes()</a>, save the stream as a temporary file, then load the file stream using URLRequest. Although I am sure there is a more elegant way of doing this using an in memory file reference&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris jar</title>
		<link>http://blog.affirmix.com/2009/01/28/getting-started-with-adobe-air-and-sqlite-and-avoiding-the-problems/comment-page-1/#comment-1702</link>
		<dc:creator>chris jar</dc:creator>
		<pubDate>Tue, 19 May 2009 09:07:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.affirmix.com/?p=101#comment-1702</guid>
		<description>Hi,

I like your solution to the problem of using SQLite in Flex. Have you ever stored sounds in your database? I&#039;m suprised it is such big problem to store sound blobs. 

Chris</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I like your solution to the problem of using SQLite in Flex. Have you ever stored sounds in your database? I&#8217;m suprised it is such big problem to store sound blobs. </p>
<p>Chris</p>
]]></content:encoded>
	</item>
</channel>
</rss>
