--
--
_________________________________________________
Mumbai Python Users Group - http://www.mumpy.org/
Mailing Group - http://groups.google.com/group/mumpy/
Membership Management - http://groups.google.com/group/mumpy/subscribe/
---
You received this message because you are subscribed to the Google Groups "mumpy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mumpy+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
--
_________________________________________________
Mumbai Python Users Group - http://www.mumpy.org/
Mailing Group - http://groups.google.com/group/mumpy/
Membership Management - http://groups.google.com/group/mumpy/subscribe/
---
You received this message because you are subscribed to the Google Groups "mumpy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mumpy+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
There seems to be a hack here : https://github.com/sightmachine/simplecv-js/blob/master/webrtc-to-python/server.py. Haven't tested.
What mime type does the client set on the request? If it's application/octet-stream then `request.data` may not be the correct way toaccess the input data in Flask. Try reading from the input stream (Don't know how to do this in Flask but probably there would be a method on the request object)
Just make a FileStorage object out of it and save it, that is what Flask uses for request.files. That should work IMO.
Uploading files in Flask
--
--
_________________________________________________
Mumbai Python Users Group - http://www.mumpy.org/
Mailing Group - http://groups.google.com/group/mumpy/
Membership Management - http://groups.google.com/group/mumpy/subscribe/
---
You received this message because you are subscribed to the Google Groups "mumpy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mumpy+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
There seems to be a hack here : https://github.com/sightmachine/simplecv-js/blob/master/webrtc-to-python/server.py. Haven't tested.
request.json should solve the problem, check this -- http://flask.pocoo.org/docs/api/#flask.Request.json
--