Hi,
      My code is like this:
      This code sends ByteArray to specified Url ,and server also sends
ByteArray in reply.
      How to load byteArray in completeHandler returned from server and how
to interpret this ByteArray.
     Replied ByteArray will same like sent ByteArray.

  var byteArry:ByteArray = new ByteArray();
  public function sendData():void
  {
                  byteArry.writeUTFBytes("String");
                   byteArry.writeInt(int);

                  var request:URLRequest = new URLRequest();
                  request.method = "POST";

                   request.url = "url";

                  request.contentType = "application/octet-stream";
                  request.data = byteArry;
                  var loader:URLLoader = new URLLoader();

                  configureListeners(loader);
                   loader.load(request);

  }

    private function configureListeners(dispatcher:IEventDispatcher)
             {
                dispatcher.addEventListener(Event.COMPLETE,
completeHandler);

             }


  private function completeHandler(event:Event):void
             {
               //I want to load ByteArray here...How to load BytArray and
how to interpret it??

            }

-- 
Thanks & Regards,
  Yogesh Patel

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to