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?
Was this page helpful?