code: public static void sendStream(ObjectOutputStream oos, InputStream inputStream) throws IOException {
  		int b;
  		while ((b = inputStream.read()) >= 0) {
  			oos.write(b);
  		}
  		oos.flush();
  	}
docs: send data from frontend to backend (import of data)