I'm working with this API that returns images in binary format, I need to display them on webpage, the problem is that they are coming in some weird format that simple <img>
tag with src="data:image/jpeg;base64,
doesn't display. The API providers have no idea what the format is and don't want to spend too much time on my questions, and they say that flash applications using the same api work fine to display images so html should as well. Anyway I need someone to at least help me identify the format so I can move forward. The data as I receive it looks like so:
����JFIF���Digilant Signature � 8���F'�*�P�^�lW�$c?��Veι$ _,�ZY���UګJ�
��~I�
��~I�u����y~�����\"��o�*�@�̋�����;$���W�K��~I�
��~I���~I�
��~I���~I�
��~I���#0�f>�B^��ͫ�q+��nZ�������̽t��/
when I do the btoa(encodeURIComponent( str )
to it, it comes back looking like so:
JUVGJUJGJUJEJUVGJUJGJUJEJUVGJUJGJUJEJUVGJUJGJUJEJTAwJTEwSkZJRiUwMCUwMSUwMiUwMCUwMCUwMSUwMCUwMSUwMCUwMCVFRiVCRiV ... ... SUxNFElNDAlMDUlMTRRJTQwJTA1JTE0USU0MCUxRiVFRiVCRiVCRCVFRiVCRiVCRCUyMg==
Can anyone help me identify the format so I can display images?
Thanks!