xdmp.gzip( node as Node ) as binary()
Create a gzip node from a node.
Parameters | |
---|---|
node | The node that you want to gzip up. |
const gzip = xdmp.gzip(cts.doc("/mydoc.xml")); xdmp.save('/tmp/myzip.gz', gzip); // Creates a gzip file from the document "/mydoc.xml", then // saves that to the filesystem.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.