Once again thank you Christian ! I wrote a servlet in my young days to do that... Now A single XQuery line does it ! Do you plan to offer 'user defined' indexes in near future ? (Indexing only a giving xpath attribute, text or ft) Have a nice day. Best regards, Fabrice -----Message d'origine----- De : Christian Grün [mailto:christian.gruen@gmail.com] Envoyé : mardi 25 février 2014 17:53 À : Fabrice Etanchaud Cc : basex-talk@mailman.uni-konstanz.de Objet : Re: [basex-talk] RESTXQ : returning application/zip data Hi Fabrice,
But the result is an invalid zip archive...
You will have to add the following annotation: %output:method("raw") It enforces binary64 and hex data to be passed on in its original byte representation. I have extended some info in our Wiki RESTXQ entry. Best, Christian [1] http://docs.basex.org/wiki/RESTXQ#Response_Element