code: public static void receiveStream(ObjectInputStream ois, OutputStream outputStream) throws IOException {
  		int b;
  		while ((b = ois.read()) >= 0) {
  			outputStream.write(b);
  		}
  		return;
  	}
docs: send data from backend to frontend (export data)