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

    converting bytearray into binary format

    FlexPrashant

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

       

      [Bindable]
                  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()

      Alert.show(i.toString(2));

       

       

      thanks in advance