From: Gary <ga...@ra...> - 2021-10-14 12:48:48
|
Hi Guys, I am trying to take a picture in the web browser using a webcam such as from a phone and upload to EXIST-DB and wonder if there is anyone who knows all about this already and could kindly share pointers to some documentation or some general tips, advice or recommendations how to achieve this. Chrome and some other browsers support taking pictures as part of the WebRTC standardization and there are lots of sites using this functionality such as: https://webcamtoy.com/ All the tutorial examples I found so far are using PHP/node-js back-end and I am hoping to work out instead a way to post to xquery from HTML/JavaScript HTML FORM video and canvas into EXIST-DB. I guess I need the binary-to-string like this on the server side: xmldb:store($collection, $filename, util:binary-to-string(request:get-uploaded-file-data('file'))) It would be great to share ideas on this as it looks really useful for so many different use cases. I am also wondering about the best formatting png or JPEG etc., ideal file and encoding (base64?), metadata and standard webcam picture sizing and am hoping for some pointers for some optimal settings for those. Kindest regards, Gary |