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!
C
Chaika10d ago
You can base64 anything, you'd just have to handle decoding it client-side
P
programORdie10d ago
I already solved it by using multiple endpoints in my worker, but still thank you for your help