I want to use flask to read a large data (essentially infinite) stream from a client. In the handler method for the URL, I want to read some data then yield, in an infinite loop. Will this work?
To clarify, I want do something as follows:
@app.route("/spectrumdb/stream",methods=["POST"])
def datastream():
get the input stream of the request object.
Sit in an infinite loop, incrementally reading the input stream in chunks
and processing each chunk yeild the
interpreter after each chunk is processed.
Thank you in advance for your replies.
Ranga