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

How to get base64? #221

Open
PauloBragaDev opened this issue Apr 21, 2022 · 2 comments
Open

How to get base64? #221

PauloBragaDev opened this issue Apr 21, 2022 · 2 comments

Comments

@PauloBragaDev
Copy link

Can someone please help me with some questions?
How do I get the base64 of the image?
how to use getBase64?
Do you have an example ready?

@Kouraman
Copy link

Kouraman commented Apr 27, 2022

You can use getBase64() function from the ref.

canvas.current.getBase64('png', false, false, true, false, (err, image) => {
      onChange({
          handWrittenObservation: { base64Image: image },
        },
      });
})

@PauloBragaDev
Copy link
Author

You can use getBase64() function from the ref.

canvas.current.getBase64('png', false, false, true, false, (err, image) => {
      onChange({
          handWrittenObservation: { base64Image: image },
        },
      });
})

Do you have any practical example of using this function?

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