I have basically made an api in flask the return png image from the server and the intresting thing is that I am returning that image by writing on the bytes io.But the problem is the JavaScript is displaying it in charcters that only aliens can understand. Here it is
`�PNG
�
���
IHDR�������������͏|����>IDATx��X�
�0�S�!cN�)9�9ͧ䄌�
����[Q�KiXKbk"(Q�E?D���ّ�2{�b>������?۩��S�g��9���U%=�Q�KbDE�笻� ĕ���#§�JG�T'���E�����S�J��c3v;B���N�hShݺy������n՚�Q�~�}в#����D�s$b���%�A��������\�=G(������[L ���&�@��#�p���5��6�N����O89̣�����pr�0nD���U������.�6�ÿ��;��Z���2��g"�ʷ©���PP|� &����G�k��-�~ti]sAʿ���ؑ��߲/������G�����IEND�B� script.js:39:13
Please anyone help me.