0 Replies Latest reply on Jul 6, 2011 3:23 PM by Rhumaric

    0 bytes after decompression detection

    Rhumaric

      Hi !

       

      I'm implementing a class that displays geographic data from a WMS server. I'm using a Loader to get the image data. However, when there is an error (eg. bad parameters in the request), the service may answer a XML document instead of an image. That makes the loader trace '0 bytes after decompression' infinitely... not really pleasing in the debug trace.

       

      I tried all the events the loader (well ... its contentLoaderInfo property) could raise, but the only one i get is the Event.OPEN when loading starts. I don't even get a HttpStatusEvent when service response comes back. The last solution I'm planning is to put some kind of timeout for Event.COMPLETE and cancel loading, but I'm still wondering if there is a better solution for this;