1 Reply Latest reply on Dec 14, 2009 5:26 AM by funkysoul

    Sending ByteArray as part of URLRequest data

    mfsiddiq Level 1
      Hi

       

      I am facing some issues sending byteArray as part of my URLRequest data to a cfm page.I need to send an collection of objects as part of byteArray.But when i try doing so,i get illegalArgumentException.I am doing it this way

       

      var obj:Object=new Object();
      obj.name='Mike';
      obj.age='26';
      var byteA:ByteArray=new ByteArray();
      byteA.writeObject(obj);
      var urlReq:URLRequest=new URLRequest('home.cfm');
      urlReq.data=byteA;
      navigateToURL(urlReq);

       

      Secondly when i tried sending xml obj as part of ByteArray,It worked fine ,but i get unwanted characters appended at the start and end of the xml.
      How do i resolve the issues.Thanks in advance

       

      Regards
      Sidd