Skip to content
allomorphy edited this page Apr 27, 2020 · 8 revisions

Welcome to the react-webcam wiki! Please remove this posting if not useful or in the wrong place.

I think a lot of developers will share our workflow and want to test the server side with the command line.

We had some issues like running into this when trying to send both a b64 encoded image and other key, values in a single json object. For example running into this issue: https://github.com/git-ftp/git-ftp/issues/102

This is the kind of approach that we found the most reliable and I hope it can save time for others in the same situation. According to the note where I found it, this will be also good for binary streams:

curl -v -X POST -H "Content-Type: application/json" https://foo.bar/api/image -d @<( printf ' { "image": "data:image/webp;base64,' /usr/bin/base64 ~/vertical_4.jpg | tr -d '\n' printf '", "assayInstance": "Q", "email": "[email protected]"}\n')`

Clone this wiki locally