<?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: readGZippedText() UDF</title>
	<atom:link href="http://www.barneyb.com/barneyblog/2007/07/26/readgzippedtext-udf/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.barneyb.com/barneyblog/2007/07/26/readgzippedtext-udf/</link>
	<description>Thoughts, rants, and even some code from the mind of Barney Boisvert.</description>
	<lastBuildDate>Thu, 11 Sep 2014 09:58:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: barneyb</title>
		<link>https://www.barneyb.com/barneyblog/2007/07/26/readgzippedtext-udf/comment-page-1/#comment-212481</link>
		<dc:creator>barneyb</dc:creator>
		<pubDate>Tue, 18 May 2010 15:19:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/2007/07/26/readgzippedtext-udf/#comment-212481</guid>
		<description>Geoff, I sure haven&#039;t.  Did you check cflib.org?  If not, you should be able to basically do the same thing as I did, just in reverse.  Here&#039;s psuedocode:

&lt;pre&gt;baos = new ByteArrayOutputStream()
out = new PrintWriter(new DeflaterOutputStream(baos))
out.println(&quot;hello, world!&quot;)
fileWrite(&quot;/path/to/file&quot;, baos.toByteArray())
&lt;/pre&gt;

I haven&#039;t tested that, but it should be close.</description>
		<content:encoded><![CDATA[<p>Geoff, I sure haven't.  Did you check cflib.org?  If not, you should be able to basically do the same thing as I did, just in reverse.  Here's psuedocode:</p>
<pre>baos = new ByteArrayOutputStream()
out = new PrintWriter(new DeflaterOutputStream(baos))
out.println("hello, world!")
fileWrite("/path/to/file", baos.toByteArray())
</pre>
<p>I haven't tested that, but it should be close.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff</title>
		<link>https://www.barneyb.com/barneyblog/2007/07/26/readgzippedtext-udf/comment-page-1/#comment-212464</link>
		<dc:creator>Geoff</dc:creator>
		<pubDate>Tue, 18 May 2010 10:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/2007/07/26/readgzippedtext-udf/#comment-212464</guid>
		<description>Hi Barney

I don&#039;t suppose you wrote the reverse of this function by any chance? I&#039;ve been struggling with Output Streams etc, but not getting anywhere... (I&#039;m actually trying to deflate, not gzip but it&#039;s pretty much the same process I believe)</description>
		<content:encoded><![CDATA[<p>Hi Barney</p>
<p>I don't suppose you wrote the reverse of this function by any chance? I've been struggling with Output Streams etc, but not getting anywhere&#8230; (I'm actually trying to deflate, not gzip but it's pretty much the same process I believe)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sami Hoda</title>
		<link>https://www.barneyb.com/barneyblog/2007/07/26/readgzippedtext-udf/comment-page-1/#comment-26676</link>
		<dc:creator>Sami Hoda</dc:creator>
		<pubDate>Fri, 27 Jul 2007 18:08:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/2007/07/26/readgzippedtext-udf/#comment-26676</guid>
		<description>I&#039;d submit this to cflib. Useful!</description>
		<content:encoded><![CDATA[<p>I'd submit this to cflib. Useful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: barneyb</title>
		<link>https://www.barneyb.com/barneyblog/2007/07/26/readgzippedtext-udf/comment-page-1/#comment-26660</link>
		<dc:creator>barneyb</dc:creator>
		<pubDate>Fri, 27 Jul 2007 14:36:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/2007/07/26/readgzippedtext-udf/#comment-26660</guid>
		<description>Dan,

I wonder if the exception was do to the wholesale conversion from the ByteArrayOutputStream buffer to a String.  I haven&#039;t cracked 10MB yet, so I can&#039;t say if mine will have the same problem, but I&#039;m doing that conversion a piece at a time (via the Reader/StringBuilder arrangement).   More simply, I&#039;m reading textual characters a line at a time, rather than bytes 1024 at a time, into my output &quot;thing&quot;.  I&#039;ll definitely post back if/when I cross that threshold though.</description>
		<content:encoded><![CDATA[<p>Dan,</p>
<p>I wonder if the exception was do to the wholesale conversion from the ByteArrayOutputStream buffer to a String.  I haven't cracked 10MB yet, so I can't say if mine will have the same problem, but I'm doing that conversion a piece at a time (via the Reader/StringBuilder arrangement).   More simply, I'm reading textual characters a line at a time, rather than bytes 1024 at a time, into my output "thing".  I'll definitely post back if/when I cross that threshold though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan G. Switzer, II</title>
		<link>https://www.barneyb.com/barneyblog/2007/07/26/readgzippedtext-udf/comment-page-1/#comment-26658</link>
		<dc:creator>Dan G. Switzer, II</dc:creator>
		<pubDate>Fri, 27 Jul 2007 14:04:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/2007/07/26/readgzippedtext-udf/#comment-26658</guid>
		<description>@Barney:

I wrote a similar function a couple years ago:
http://blog.pengoworks.com/blogger/index.cfm?action=blog:501

You&#039;re using a StringBuffer and I used a ByteArrayOutputStream, but I ran into some Buffer Overflow errors if the GZIP&#039;ed content was too large.

In my case I was reading in an XML packet that had been GZIP&#039;ed and the XML files could get pretty large. 

Just something you might want to test for...</description>
		<content:encoded><![CDATA[<p>@Barney:</p>
<p>I wrote a similar function a couple years ago:<br />
<a href="http://blog.pengoworks.com/blogger/index.cfm?action=blog:501" rel="nofollow">http://blog.pengoworks.com/blogger/index.cfm?action=blog:501</a></p>
<p>You're using a StringBuffer and I used a ByteArrayOutputStream, but I ran into some Buffer Overflow errors if the GZIP'ed content was too large.</p>
<p>In my case I was reading in an XML packet that had been GZIP'ed and the XML files could get pretty large. </p>
<p>Just something you might want to test for&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boyan</title>
		<link>https://www.barneyb.com/barneyblog/2007/07/26/readgzippedtext-udf/comment-page-1/#comment-26649</link>
		<dc:creator>Boyan</dc:creator>
		<pubDate>Fri, 27 Jul 2007 12:43:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/2007/07/26/readgzippedtext-udf/#comment-26649</guid>
		<description>This could come in handy. It&#039;s going in my Source Code library. Thanks.</description>
		<content:encoded><![CDATA[<p>This could come in handy. It's going in my Source Code library. Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
