public static String toBinaryString(byte[] value){
  BigInteger helpBigInteger=new BigInteger(1,value);
  return helpBigInteger.toString(2);
}

public static String toBinaryString ( byte [ ] value ) { BigInteger helpBigInteger = new BigInteger ( 1 , value ) ; return helpBigInteger . toString ( 2 ) ; }
converts a byte array to a binary string
