2 Replies Latest reply on Feb 27, 2010 8:06 AM by FlexPrashant

    converting bytearray into binary format

    FlexPrashant Level 1

      Hi I have a byteaary , I want to convert this byteArray data into binary format (01010101) , Please help me


                  private var imgByte:ByteArray;

      bitmapData     = new BitmapData(pic.width, pic.height);
                       bitmapData.draw(pic,new Matrix());
                      var jpg:JPEGEncoder = new JPEGEncoder();
                      imgByte = jpg.encode(bitmapData) ;

      var i:int=imgByte.readByte()




      thanks in advance