<?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"
	>
<channel>
	<title>Comments on: Reading gzip compressed data via Javascript</title>
	<atom:link href="http://whacked.net/2008/05/05/reading-gzip-compressed-data-via-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://whacked.net/2008/05/05/reading-gzip-compressed-data-via-javascript/</link>
	<description>thoughts on open spaces</description>
	<pubDate>Tue, 07 Oct 2008 05:00:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Stephen Lau</title>
		<link>http://whacked.net/2008/05/05/reading-gzip-compressed-data-via-javascript/#comment-97209</link>
		<dc:creator>Stephen Lau</dc:creator>
		<pubDate>Wed, 07 May 2008 15:33:38 +0000</pubDate>
		<guid isPermaLink="false">http://whacked.net/?p=958#comment-97209</guid>
		<description>&lt;p&gt;Yeah - the method I used gives me nice ASCII XML data which I can then parse more easily.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Yeah - the method I used gives me nice ASCII XML data which I can then parse more easily.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Neil</title>
		<link>http://whacked.net/2008/05/05/reading-gzip-compressed-data-via-javascript/#comment-97202</link>
		<dc:creator>Neil</dc:creator>
		<pubDate>Wed, 07 May 2008 13:23:27 +0000</pubDate>
		<guid isPermaLink="false">http://whacked.net/?p=958#comment-97202</guid>
		<description>&lt;p&gt;One possibility is to use a stream loader, although from JavaScript it gives you a rather useless array of byte values rather than the string you're looking for (which I hope is ASCII for your sake.)&lt;/p&gt;

&lt;p&gt;Ideally what you could do with is some way of hooking up the stream listener for an XML document with the stream converter, though I don't see how to achieve that without hacking into the Gecko codebase.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>One possibility is to use a stream loader, although from JavaScript it gives you a rather useless array of byte values rather than the string you&#8217;re looking for (which I hope is ASCII for your sake.)</p>

<p>Ideally what you could do with is some way of hooking up the stream listener for an XML document with the stream converter, though I don&#8217;t see how to achieve that without hacking into the Gecko codebase.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Boris</title>
		<link>http://whacked.net/2008/05/05/reading-gzip-compressed-data-via-javascript/#comment-97151</link>
		<dc:creator>Boris</dc:creator>
		<pubDate>Wed, 07 May 2008 03:01:06 +0000</pubDate>
		<guid isPermaLink="false">http://whacked.net/?p=958#comment-97151</guid>
		<description>&lt;p&gt;Ah, this is a URI you don't control.  That's unfortunate...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ah, this is a URI you don&#8217;t control.  That&#8217;s unfortunate&#8230;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Lau</title>
		<link>http://whacked.net/2008/05/05/reading-gzip-compressed-data-via-javascript/#comment-97137</link>
		<dc:creator>Stephen Lau</dc:creator>
		<pubDate>Wed, 07 May 2008 00:11:17 +0000</pubDate>
		<guid isPermaLink="false">http://whacked.net/?p=958#comment-97137</guid>
		<description>&lt;p&gt;@Boris: The Magnatune store sends the gzip'd XML file with mime-type application/gzip instead of text/xml, so you can't use XMLHttpRequest.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Boris: The Magnatune store sends the gzip&#8217;d XML file with mime-type application/gzip instead of text/xml, so you can&#8217;t use XMLHttpRequest.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: mozilla</title>
		<link>http://whacked.net/2008/05/05/reading-gzip-compressed-data-via-javascript/#comment-97103</link>
		<dc:creator>mozilla</dc:creator>
		<pubDate>Tue, 06 May 2008 18:56:05 +0000</pubDate>
		<guid isPermaLink="false">http://whacked.net/?p=958#comment-97103</guid>
		<description>&lt;p&gt;[...] The fetch was easy XMLHttpRequest, as was the parse DOMParser, but I had no idea how to do the expanhttp://whacked.net/2008/05/05/reading-gzip-compressed-data-via-javascript/Features and Case Studies ZDNet AustraliaThe mozilla Foundation is perhaps best known for its [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] The fetch was easy XMLHttpRequest, as was the parse DOMParser, but I had no idea how to do the expanhttp://whacked.net/2008/05/05/reading-gzip-compressed-data-via-javascript/Features and Case Studies ZDNet AustraliaThe mozilla Foundation is perhaps best known for its [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Lau</title>
		<link>http://whacked.net/2008/05/05/reading-gzip-compressed-data-via-javascript/#comment-97064</link>
		<dc:creator>Stephen Lau</dc:creator>
		<pubDate>Tue, 06 May 2008 15:39:48 +0000</pubDate>
		<guid isPermaLink="false">http://whacked.net/?p=958#comment-97064</guid>
		<description>&lt;p&gt;Thanks for the tip Dennis, I'll try that.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for the tip Dennis, I&#8217;ll try that.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://whacked.net/2008/05/05/reading-gzip-compressed-data-via-javascript/#comment-96975</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Tue, 06 May 2008 09:26:43 +0000</pubDate>
		<guid isPermaLink="false">http://whacked.net/?p=958#comment-96975</guid>
		<description>&lt;p&gt;Instead of doing:
this._data += xx. &lt;/p&gt;

&lt;p&gt;You should consider:
this.&lt;em&gt;data = [];
this.&lt;/em&gt;data.push(xx)
this._data.join("").&lt;/p&gt;

&lt;p&gt;On large pieces of data thats alot faster.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Instead of doing:
this._data += xx. </p>

<p>You should consider:
this.<em>data = [];
this.</em>data.push(xx)
this._data.join(&#8221;").</p>

<p>On large pieces of data thats alot faster.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: ToTheBatCave</title>
		<link>http://whacked.net/2008/05/05/reading-gzip-compressed-data-via-javascript/#comment-96873</link>
		<dc:creator>ToTheBatCave</dc:creator>
		<pubDate>Mon, 05 May 2008 21:44:55 +0000</pubDate>
		<guid isPermaLink="false">http://whacked.net/?p=958#comment-96873</guid>
		<description>&lt;p&gt;If you turned this into an extension that ungzipped remote files on 3rd party servers that fail to serve the correct Content-encoding: gzip headers, you'll find it very popular if combined with the functionality of "openinbrowser" at http://www.spasche.net/mozilla/ for when they also serve the wrong content-type. For instance, I've not found any free web hosting services (including archive.org) that serve .svgz files with that header, even though it would benefit them bandwidth-wise.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>If you turned this into an extension that ungzipped remote files on 3rd party servers that fail to serve the correct Content-encoding: gzip headers, you&#8217;ll find it very popular if combined with the functionality of &#8220;openinbrowser&#8221; at <a href="http://www.spasche.net/mozilla/" rel="nofollow">http://www.spasche.net/mozilla/</a> for when they also serve the wrong content-type. For instance, I&#8217;ve not found any free web hosting services (including archive.org) that serve .svgz files with that header, even though it would benefit them bandwidth-wise.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge</title>
		<link>http://whacked.net/2008/05/05/reading-gzip-compressed-data-via-javascript/#comment-96809</link>
		<dc:creator>Jorge</dc:creator>
		<pubDate>Mon, 05 May 2008 18:21:16 +0000</pubDate>
		<guid isPermaLink="false">http://whacked.net/?p=958#comment-96809</guid>
		<description>&lt;p&gt;Interesting. When I needed to do something like this I opted to save the file locally and then open it with ZipReader. This sounds much more efficient and better encapsulated, though. Thank you for posting it.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Interesting. When I needed to do something like this I opted to save the file locally and then open it with ZipReader. This sounds much more efficient and better encapsulated, though. Thank you for posting it.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Boris</title>
		<link>http://whacked.net/2008/05/05/reading-gzip-compressed-data-via-javascript/#comment-96804</link>
		<dc:creator>Boris</dc:creator>
		<pubDate>Mon, 05 May 2008 18:12:50 +0000</pubDate>
		<guid isPermaLink="false">http://whacked.net/?p=958#comment-96804</guid>
		<description>&lt;p&gt;Is the URI not an http: URI?  You could just use HTTP content-encoding and have all of this handled for you behind the scenes...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Is the URI not an http: URI?  You could just use HTTP content-encoding and have all of this handled for you behind the scenes&#8230;</p>]]></content:encoded>
	</item>
</channel>
</rss>
