AI multiple binary files

Hi! I'm tried out the AI image generator, and it retrurns the image as a binary data. How can I send 2 image files (+ some extra data) to the frontend in the same request? I tried converting to base64, but that's not possible is ts.
I tried putting them in an array, but that returns [[Object object], [Object object]]

Thank you for your help!
Was this page helpful?