public void sendData(OutputStream outputStream, String data) {
      try{
        outputStream.write(data.getBytes());
        outputStream.flush();
      }catch(Exception e) {
        e.printStackTrace();
      }
    }