1 Reply Latest reply on Jan 27, 2011 4:32 AM by chriswyl

    AMFPHP/ Flash Builder not return ByteArray us RO

    chriswyl Level 1

      Hi, I've some trouble with receiveing ByteArray from server.

       

      this my php

       


      <?php


      include_once(AMFPHP_BASE . "shared/util/MethodTable.php");

      class DataService


      function geImage($somedata)
          {
              return new ByteArray(file_get_contents("images/testp.jpg"));   
          }

      ?>

       

      and this my RO component

       

      <s:RemoteObject id="service"
                             endpoint="flashservices/gateway.php"
                             destination="DataService.geImage"                      
                             source="DataService"
                             showBusyCursor="true">
                <s:method name="geImager"
                           result="resultHandler(event)"
                           fault="faultHandler(event)" />
            </s:RemoteObject>

       

      And when i testing Methods via  attached amfphp module for testing ("/browser/index.html") , this script returning me ByteArray , but only when I choose AMF0 , AMF3 not returning.

       

      My Flash application receive faultEvent (null).

       

      RangeError: Error #2006: .....

       

      Caould you help me what do I wrong?