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

Blob is not defined #300

Open
sujin-lifology opened this issue Nov 8, 2022 · 2 comments
Open

Blob is not defined #300

sujin-lifology opened this issue Nov 8, 2022 · 2 comments

Comments

@sujin-lifology
Copy link

when using v2.2.1 it doesn’t load the page, it shows "Blob" is not defined and it is causing from the node-modules of react-qr-reader? is someone got same problem mention here

@sujin-lifology
Copy link
Author

Não consigo salvar a imagem que foi capturada com o qrcode, e sempre vem o mesmo valor de Uint8Array da chave rawBytes:

[16,16,235,68,32,101,53,97,55 ...]

resumindo: sempre vem esse mesmo valor quando faço a captura do qrcode, em seguida faço a url para visualizar a imagem capturada assim:

const url_preview = URL.createObjectURL(new Blob([result.getRawBytes().buffer], { type: 'image/png' }));
// blob:http://localhost:3000/f8bb489d-0f38-4e55-8e89-28892a71c7ba

imagem

Consigo pegar o valor correto do código do qrcode, mas preciso também salvar a imagem no servidor, mas atualmente parece ter que o parâmetro getRawBytes() não está funcionando corretamente

can you translate this into english?

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
@sujin-lifology and others