Hi
i could successfully catch a webcam videostream in an element. When i click the video show in the form i do:
videostream.pause();
var foto = document.getElementById('id_ajax_img_foto');
var context = canvas.getContext('2d');
context.drawImage(videostream, 0, 0,240,320);
var data = canvas.toDataURL('image/png');
foto.setAttribute('src', data); ==> NOT SAVE IN DB WHEN PRESS SAVE
document.getElementById('myTextField').value="NewValue"; ==> SAVED IN DB WHEN PRESS SAVE
The picture is displayed in the form field “foto”, but when i presse the save button, the picture is not save in the db. Every other form field like textfields i can access, set a new value with document.getElementById(‘myTextField’).value=“NewValue” and when i presse the save button, the newvalue is in the db. But not with the image…
Any idea very welcome!
Best regards
Steve