You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting write a simple Azure Function that reads an XML file sent in using multipart/form-data as seen in the below curl sample (the file is about 7.5MB).
When I use this line of code using the Azure Functions Python Library to access the data: x = req.files.get('gpxFile').stream.read().decode("utf-8")
I'm seeing about 15 second response times.
A similar line using Flask: x = request.files['gpxFile'].read().decode("utf-8")
returns in about 1.5 seconds.
Am I using the HttpRequest object incorrectly? If not, why does Flask request respond so much quicker then the Azure HttpRequest?
The text was updated successfully, but these errors were encountered:
I'm attempting write a simple Azure Function that reads an XML file sent in using multipart/form-data as seen in the below curl sample (the file is about 7.5MB).
When I use this line of code using the Azure Functions Python Library to access the data:
x = req.files.get('gpxFile').stream.read().decode("utf-8")
I'm seeing about 15 second response times.
A similar line using Flask:
x = request.files['gpxFile'].read().decode("utf-8")
returns in about 1.5 seconds.
Am I using the HttpRequest object incorrectly? If not, why does Flask request respond so much quicker then the Azure HttpRequest?
The text was updated successfully, but these errors were encountered: