Thanks dan this is just what I was looking for!

gabe 

-----Original Message-----
From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 10:41 AM
To: CF-Talk
Subject: RE: Gzip content from a variable

Gabe,

>I have been using cf_gzip for a while but would like to improve 
>performance.
>Right now it reads a file, then writes a gzip'd file. Then I have to 
>read that file and dish back to user.
>
>I would like to just pass in the content as a variable, then get back a 
>variable with the gzip'd data. Ignore all the file business.
>
>Anyone know of anything pre built or up for a challenge?

I worked up a solution a few months ago:
http://blog.pengoworks.com/blogger/index.cfm?action=blog:501

I was working on a Windows app where we were sending large XML packets to
the server and decided we'd GZip the XML before sending.

The UDF in my blog entry should take a GZipped string and "unzip" back to a
string. I did not test this w/any binary data--only w/XML files.

-Dan




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238279
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to