Hello, I'm testing some compression systems to make my webservice results smaller.
Now I have a webservice with the following action: input = test output = <base64Binary>K0ktLgEA</base64Binary> How can I uncompress this result in Flex ? This code gives the error: "Parameter bytes must be non-null." <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ private function LoadWebservices():void { WsTest.WsTestZippedString.arguments = {doString: tiText.text }; WsTest.WsTestZippedString.send(); } private function FillResult(): void { var x:XML = new XML(WsTest.WsTestZippedString.lastResult); //CommonFunctions.showErrorDialog(x.children()); tiResult.text = x.toString(); var byteArr:ByteArray = new ByteArray(); byteArr.writeBytes(x.toString() as ByteArray); byteArr.uncompress(); tiUnzipped.text = byteArr.toString(); } ]]> </mx:Script> <mx:WebService id="WsTest" destination="WsTest" wsdl="http://xxx.yyy.zzz/ws_test.asmx?wsdl" useProxy="false" showBusyCursor="true" > <mx:operation name="WsTestZippedString" result="FillResult();" /> </mx:WebService> <mx:TextInput x="45" y="41" id="tiText"/> <mx:Button x="228" y="41" label="Send" click="LoadWebservices();" /> <mx:TextInput x="45" y="71" id="tiResult"/> <mx:TextInput x="45" y="101" id="tiUnzipped"/> </mx:Application>