Using server-base gzip compression is probably the best route, but I don't know if Flex's user agent that pulls the data (WebService, I guess) if it supports gzip'd streams.
If it doesn't, you can do it manually with the ByteArray class. It has a compress and uncompress pair of methods that implement gzip compression. Troy. On 2/19/07, Paul DeCoursey <[EMAIL PROTECTED]> wrote:
Have you tried enabling gzip compression on the server? The browser should handle the compression automatically in that case. --- In [email protected] <flexcoders%40yahoogroups.com>, "amigo_fd" <[EMAIL PROTECTED]> wrote: > > 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 >

