79235699

Date: 2024-11-29 02:38:35
Score: 1
Natty:
Report link

Figured it out, need to strip the header first and then create a Buffer from base64

bytes: new Uint8Array(Buffer.from(img.replace(/^data:image\/\w+;base64,/, ''), 'base64'))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: aarjithn