Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save to base64 #11

Open
Dokhra opened this issue Jan 5, 2021 · 1 comment
Open

save to base64 #11

Dokhra opened this issue Jan 5, 2021 · 1 comment

Comments

@Dokhra
Copy link

Dokhra commented Jan 5, 2021

Hello,

thank you - good work! i like it very much!
is it possible to get the picture as a base64 encoded variable, f.e. saving the picture to a database.

Best Regard,
Martin

@Bergrebell
Copy link

@Dokhra - you can already do this.

let picture = this.webcam.snap();

console.log(picture)
=> data:image/png;base64,iVBORw0KGgoAAAANSUh...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants