-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
Cannot send picture from Base64 #2242
Labels
Comments
Apparently, the function expects not just base64, but a data URI.
Prefixing "data:image/png;base64," to the screenshot works. IMHO, it would be better to prefix it automatically and verify the actual image, or not at all. I'll create a PR to update the documentation and describe the workaround in the JSDoc here:wppconnect/src/api/layers/sender.layer.ts Line 224 in 1358053
|
icleitoncosta
pushed a commit
that referenced
this issue
Jul 14, 2024
gekkedev
added a commit
to gekkedev/wppconnect
that referenced
this issue
Jul 23, 2024
gekkedev
added a commit
to gekkedev/wppconnect
that referenced
this issue
Jul 23, 2024
gekkedev
added a commit
to gekkedev/wppconnect
that referenced
this issue
Jul 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Images cannot be sent as picture As reference image, I'm taking a screenshot:
Environment
Steps to Reproduce
Log Output
sendImageFromBase64:
wrapping this in a try/catch structure yields this:
sendFileFromBase64:
Additional context / Screenshot
did not try it with other pictures yet, so there could be an issue with the screenshot creation function's output (although it is displayable)
The text was updated successfully, but these errors were encountered: