title: Write HTTPServletRequest stream to Datastore of Google App Engine
body: <p>I am pretty new to App Engine and Java Development and try to receive a InputStream via Http Post and store it into Datastore.</p>
  
  <p>To test this I use the uptime from another computer and send 10 uptime values in one stream.</p>
  
  <p>Whenever I test this, the machine becomes the response with a COUNT up to 10 and a uptime value. But the Datastore Viewer has only one item stored. What am I doing wrong? I dont think this is to much data to use Memcache yet, although it is the better way and I will do it later on.</p>
  
  <pre><code>public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
      DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
      Entity uptime = new Entity("Uptime");
  
      BufferedReader buff = req.getReader();
      String line = buff.readLine();
  
      PrintWriter out = resp.getWriter();     
  
      int n = 0;
      Date timestamp = new Date();
  
      while (line != null){
          uptime.setProperty("timestamp", timestamp);
          uptime.setProperty("value",  line);
          datastore.put(uptime);
          //Ouput for Debug purpose
          out.println("COUNT: " + n + " LINE: " + line);
          n++;
  
          line = buff.readLine();
      }
  }
  </code></pre>