thumbnailPhoto
SoloEgo opened this issue · comments
Egor commented
Hi, ive tried to get user thumbnailPhoto, but in response i get "����\x00\x10JFIF\x00\x01\x01\x01\x00
\x00\x00\x00��\...", it
s a bit weird... How i can get base64 string or somthig like this?
shaozi commented
It probably is a binary string. you can try btoa(s)
Fabian Grutschus commented
thumbnailPhoto
is binary, so a simple base64encode() should be enough. Note that those thumbnails are usually stored as JPEG (image/jpeg), but I would recommend using an MIME library to get the correct MIME type for the binary string.
Egor commented
Yep, added check attribute in function in index.js and it work properly, many thanks