code: public static byte[] removeNullBytes(byte[] array) {
  		ByteArrayOutputStream baos = new ByteArrayOutputStream(array.length);
  		for (byte b : array) {
  			if (b != 0x00) {
  				baos.write(b);
  			}
  		}
  		return baos.toByteArray();
  	}
docs: Remove all nulls (0) found in the data.
  @param array the data
  @return the data cleared of whitespaces