How to return bytes from a serverless endpoint?

Hey all - I'm trying to return bytes from a serverless endpoint, however, it appears that runpod is automatically attempting to serialize it as JSON. Is thre any way to return raw bytes from an endpoint, without this occurring?
1 Reply
wiki
wiki3w ago
Workaround can be base64 encoding.

Did you find this page helpful?