# Is it possible to save data on Firebase using Processing 3.3.7?

**URL:** <https://discourse.processing.org/t/is-it-possible-to-save-data-on-firebase-using-processing-3-3-7/776>\
**Category:** Project Guidance\
**Created:** [June 7, 2018, 5:02pm UTC](https://discourse.processing.org/t/is-it-possible-to-save-data-on-firebase-using-processing-3-3-7/776 "2018-06-07T17:02:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rkardo581](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@Rkardo581](https://discourse.processing.org/u/Rkardo581)\
**Post date:** [June 7, 2018, 5:02pm UTC](https://discourse.processing.org/t/is-it-possible-to-save-data-on-firebase-using-processing-3-3-7/776/1 "2018-06-07T17:02:44Z")

</div>

I have a software made in processing that saves data in a local sercer ( using xampp) and I made an android app that gets data from Firebase.

Is it possible to have the Processing App to send the data to the firebase server?

here is some of the code for the network part of the Processing app.

```auto
  void server_evaluation() {
  Client client;
  client = new Client(this, "127.0.0.1", 84);

  String[] nomes = split(cp5.get(Textfield.class, "Name").getText(), " ");
  String name = join(nomes, "_");
  if (client.active()==true) {
    println("connected");
    // Make a HTTP request:
    client.write("GET /database/add1.php?id=" + cp5.get(Textfield.class, "ID").getText() + "&nome=" + name + "&pron=" + int(abs(round(degrees(minangle3)))) + "&supi=" + int(abs(round(degrees(maxangle3)))) + "&fle=" + int(abs(round(degrees(minangle2)))) + "&ext=" + int(abs(round(degrees(maxangle2)))) + "&rad=" + int(abs(round(degrees(minangle1)))) + "&uln=" + int(abs(round(degrees(maxangle1)))) + "\r\n");
    client.write("\r\n");
    client.stop();
  } else {
    // if you didn't get a connection to the server:
    println("connection failed");
  }
}

void server_exercise() {
  Client client;
  client = new Client(this, "127.0.0.1", 84);

  String[] nomes = split(cp5.get(Textfield.class, "Name").getText(), " ");
  String name = join(nomes, "_");
  if (client.active()==true) {
    println("connected");
    // Make a HTTP request:
    client.write("GET /database/add2.php?id=" + cp5.get(Textfield.class, "ID").getText() + "&nome=" + name + "&pron=" + int(round(degrees(pronation))) + "&supi=" + int(round(degrees(supination))) + "&fle=" + int(round(degrees(flection))) + "&ext=" + int(round(degrees(extension))) + "&rad=" + int(round(degrees(radial))) + "&uln=" + int(round(degrees(ulnar))) + "\r\n");
    client.write("\r\n");
    client.stop();
  } else {
    // if you didn't get a connection to the server:
    println("connection failed");
  }
}

```

Thanks ;D

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [June 7, 2018, 5:03pm UTC](https://discourse.processing.org/t/is-it-possible-to-save-data-on-firebase-using-processing-3-3-7/776/2 "2018-06-07T17:03:14Z")

</div>

Please link to your other post when you cross-post a question:

- [https://stackoverflow.com/questions/50743717/is-it-possible-to-save-data-on-firebase-using-processing-3-3-7](https://stackoverflow.com/questions/50743717/is-it-possible-to-save-data-on-firebase-using-processing-3-3-7)
