B64 String Being Stripped From HttpService JSON Object Flex 4.0

Posted by user163757 on Stack Overflow See other posts from Stack Overflow or by user163757
Published on 2011-01-09T01:50:46Z Indexed on 2011/01/09 1:53 UTC
Read the original article Hit count: 526

Filed under:
|
|

I am trying to decode some b64 images obtained from a web service in my Flex application. The response of this web service is a basic JSON object, with a property (B64Image) that contains the encoded string. The service works fine from my regular browser, however the b64 string gets stripped. So the object the result handler gets has a null value for B64Image. Anyone see something wrong here?

EXPECTED OUTPUT

{
  "PropertyPhotos": [
    {
      "B64Image": "/9j/4AAQSkZJRgABAQEAYABgAAD....etc"
    }
  ]
}  

<s:HTTPService id="photoService"
                       url="http://localhost/dev/photohandler.ashx"
                       resultFormat="text"
                       result="photoService_resultHandler(event)"
                       fault="photoService_faultHandler(event)">
        </s:HTTPService>

© Stack Overflow or respective owner

Related posts about flex

Related posts about actionscript