Hello, Probably my ignorance, but I struggle to send a byte array (byte[]) from a java module to a restxq response.
Something a bit like this: return (<rest:response> <http:response status="200"> <http:header name="content-type" value="application/pdf"/> </http:response> </rest:response>, SomeJavaModule:getSomeBytes($module_instance)) I know there is a binary module in BaseX but I tried various things and couldn't get the wanted output. I could probably write the bytes in a file and then use file:read-binary() but it's something I'd like to avoid. Any clue here ? Mickaël