Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6581

Use HEIC (application/octet-strem) base64 in

$
0
0

I have a HEIC file which I am receiving as a response

{   content: <entire base64 content>,   filename: "File.heic",   type: "application/octet-stream"}

need to display this as a image on the browser.I have tried with

<img src="data:image/png;base64,..."

or

<img src="data:application/octet-stream;base64,..."

but it's not rendering. How to achieve this? Do I need to convert this to image/png base64? How do I do that? I am using ReactJS btw


Viewing all articles
Browse latest Browse all 6581

Latest Images

Trending Articles



Latest Images