Hi Eliot,
I would like to serve the images from RESTXQ-generated HTML Pages but I’m not sure how to do that other than to use URLs that include the base64 image data directly.
The DBA code contains such an endpoint [1]. Memory consumption will be constant: As file:read-binary is used, the binary data will be streamed directly to the client [2]. The used headers (Cache-Control, Content-Length) are optional and can be arbitrarly adjusted.
Best, Christian
[1] https://github.com/BaseXdb/basex/blob/da1e55d0214e44c1532f121c282021db50a9aa... [2] https://docs.basex.org/wiki/Lazy_Module