Custom QR Code with Logo

ОПЛАЧЕНО
От qrcode-monkey | Обновлено לפני 20 ימים | Tools
Популярность

9.8 / 10

Задержка

740ms

Уровень обслуживания

98%

Health Check

N/A

Назад ко всем обсуждениям

Converting to Image

Rapid account: Connerhughes 14
connerhughes14
לפני 5 שנים

The API for jquery returns a string when running in browser. How would you convert this to the image?

Rapid account: Qrcode Monkey
qrcode-monkey Commented לפני 5 שנים

Hello,

the API returns the binary data of the image file. I would turn this string into base64 string which can be used as the “src” attribute of an image tag. Look here at the btoa() function: https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding

I hope this helps!

Best regards
Norbert

Rapid account: Connerhughes 14
connerhughes14 Commented לפני 5 שנים

The response is an unintelligible string from the API call

Присоединяйтесь к обсуждению – добавьте комментарий ниже:

Войдите / Зарегистрируйтесь, чтобы публиковать новые комментарии