Why not use browser and web-server level compression? Most browsers support gzip compression, you usually just have to turn it on in the browser (which is often easier said than done but is doable with a little tinkering). That would be a lot easier and more true-to-form than trying to pass zipped strings as web service messages.
Sam ------------------------------------------- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of amigo_fd Sent: Monday, February 19, 2007 12:12 PM To: [email protected] Subject: [flexcoders] zip/unzip xml webservice result Hello, Any suggestions/ideas on how to zip a (xml-)string result of a webservice with ASP.NET2 C# and most importantly how to unzip in Flex ? I know Flex Dataservice has a built in system for this, but it's just too expensive ... For zipping in the webservice, I was thinking of using SharpZipLib (http://community.sharpdevelop.net/forums/12/ShowForum.aspx). I already used this for an other webservice where I had to zip many jpeg-images into one file. So with some trial-and-error I think I must succeed in zipping my xml-string to be a much smaller result. Or are there any other ideas out there ? But the main problem is: how will I be able to unzip my webservice-result in Flex ? Now I work with my xml-string result in this way: var x:XML = new XML(myWebservice.myWebserviceFunction.lastResult); myDatagrid.dataProvider = new XMLListCollection(x.children()); So I guess I would have to do something like: var x:XML = new XML(UNZIP(myWebservice.myWebserviceFunction.lastResult)); myDatagrid.dataProvider = new XMLListCollection(x.children()); Any ideas on how we can do this ? Many thanks in advance ! Frank

