I am receiving a bindata from the Nodejs server and now from that I need to display an image.
How can I achieve this? Is there any method to convert bindata to JPEG
If you need to display binary image from api, and the binary data look like this ����JFIF��� ���
convert to blob first and use URL.createObjectUrl(BLOB);
{responseType: 'blob'}
to the configor
response.blob();
display image from blob
I don't know is this the best solution or not, but it works.