title: Read ByteArray from Javascript in Flex AS function
body: <p>I need to pass ByteArray from Javascript function to Flex Actionscript function. 
  Have tried using the below JS:</p>
  
  <pre><code>function deviceResp(s){ 
      var obj = document.getElementById('smera');
      obj.deviceRespFx(s);    
  }
  </code></pre>
  
  <p>My AS function :</p>
  
  <pre><code>public function imageRespFxs(value:String):void{
      Alert.show(value.length);
  }
  </code></pre>
  
  <p>EDIT:
  Callback Function is loaded on "<strong>creationComplete</strong>"</p>
  
  <pre><code>   public function initDevice():void{                  
                                 ExternalInterface.addCallback("deviceRespFx",imageRespFxs);
  
          }
  </code></pre>
  
  <p>As the above method is inturn converting a byte array to a String so there is a loss of data, could any one please assist on how to pass a Byte Array from JS to AS function.</p>