I’m trying to stream a binary file from a client request to Google Cloud Storage through my server.
I am using the Tornado framework to stream the data from the request to the server and the Google Cloud Storage API to stream the file to the Google
I’m new to Tornado and I’m using the
@stream_request_body decorator so I can get the data in the request from chunks and upload each chunk to Google.
I’m trying to open a file-like object that I can write each chunk to, while uploading the “file” itself to Google.
The problem is that I can’t upload the “file” to Google before I start writing the block.
Any assistance would be greatly appreciated.