Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

107
Views
Convert Raw png data to a usable img src in javascipt

Getting raw png data from an api I am using, from the docs it is supposedly base64 png but it does not look like it to me. The data comes back in either of 2 forms

PNG%0D%0A%1A%0A%00%00%00%0DIHDR%00%00%00�%00%00%00�%08%06%00%00%00=�%062%00%00%00%09pHYs%00%00%0E�%00%00%0E�%01�+%0E%1B%00%00 %00IDATx%01%00��q~%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00

or like

PNG   IHDR��=�2 pHYs���+ IDATx��q~J@7J@7�ɭ� IDATJ@72.*D2.*D������'$ �2-($J@7����.)&j��������6 6��n����J@7����(%!R���M���H� ���$�������N�����>�0����J����M+(���������J@7����/*&���< ���"������ �����������  ��� ����"�D#!-����2-

could someone help me identify what this is being returned, and how can I decode it to be used as a img src?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!