Hi, All)
I could not understand what is the problem with PNG format as I have tried almost all poosible to open it in browser:
- Filereader tells Failed to execute ‘readAsDataURL’ on ‘FileReader’: parameter 1 is not of type ‘Blob’.
- Buffer.from(res.content, ‘binary’).toString(‘base64’) shows nothing as base64 image. btoa(res.content).
- Btoa tells Failed to execute ‘btoa’ on ‘Window’: The string to be encoded contains characters outside of the Latin1 range.
Also I have checked all Accept options. I just need to open received pic in a browser using JS…
I can’t find a solution for many hours yet!