- Home /
The question is answered, right answer was accepted
Passing active camera images to browser
According to the documentation, we can pass a string argument to a javascript function that is the HTML file.
I'd like to pass images the browser to be put in a div container. Is this possible?
Answer by fherbst · Jan 06, 2014 at 10:46 PM
General workflow should be like this: encode your screenshot as PNG, then do a base64 encoding, move it to the browser, use as data url in an img tag.
Thanks, I got it now. I listed the steps below as per your answer above.
Pass no 2 as an argument to a javascript function, maybe store it in a `var`
Use it in HT$$anonymous$$L's img tag as `data:image/png;base64,myBase64Data`
Thank you. I knew it would be easy.
Thanks for looking up the appropriate function calls and links :).