I hav e node express server with sends an image like res.sendFile(__dirname + '/image.png'). So it sends response with Content-Type: image/png.
I use xhr to receive this image. I am not setting responseType property to blob (it's important)!!
In this case xhr.response looks like the following:
�e+-M2����h��4�d&���|<��w�3�}Μ�9�|J.ݜ|���$P�L~f������z�I$�٭â :,�pI��b3[ /,=�����쐇̟n��=r���w�f��OM�lw(�k��� �0���Æ�ƈ��OD��ޑ�E�
How can I convert it to arraybuffer?