Omar,

 

Thanks for those ponters—that’s very helpful.

 

I was able to quickly hack the sample from the DBA code into something that works but I can see that your code is a bit more complete.

 

I don’t know why it was so exciting to see images on my RESTXQ-generated web pages but it was.

 

Cheers,

 

E.

_____________________________________________

Eliot Kimber

Sr Staff Content Engineer

O: 512 554 9368

M: 512 554 9368

servicenow.com

LinkedIn | Twitter | YouTube | Facebook

 

From: BaseX-Talk <basex-talk-bounces@mailman.uni-konstanz.de> on behalf of Omar Siam <Omar.Siam@oeaw.ac.at>
Date: Thursday, July 7, 2022 at 8:55 AM
To: basex-talk@mailman.uni-konstanz.de <basex-talk@mailman.uni-konstanz.de>
Subject: Re: [basex-talk] RESTXQ: Serve images that are not within the web app dir

[External Email]


Hi,
in [1] you can find some pretty generic code that I use (with search and
replace for RestXQ paths) in many of my projects to serve anything in
some directory related to website served using BaseX.
Another example of that code would be [2].

Best regards
Omar

[1]
https://urldefense.com/v3/__https://github.com/acdh-oeaw/openapi4restxq/blob/master_basex/swagger-ui.xqm*L18-L120__;Iw!!N4vogdjhuJM!ABhSZb1ezI_cgPgFufmVdMplTW-mgFz6hJdN-Impe8JR5Gc1G7jhmcn50jQd8XzuTyTyTeMMYVv0441MSPBULzgb5wc$
[2] https://urldefense.com/v3/__https://github.com/acdh-oeaw/vicav-app/blob/master/http.xqm*L9-L158__;Iw!!N4vogdjhuJM!ABhSZb1ezI_cgPgFufmVdMplTW-mgFz6hJdN-Impe8JR5Gc1G7jhmcn50jQd8XzuTyTyTeMMYVv0441MSPBUeaN7WZQ$

--
Mag. Ing. Omar Siam
Austrian Center for Digital Humanities and Cultural Heritage
Österreichische Akademie der Wissenschaften | Austrian Academy of Sciences
Stellvertretende Behindertenvertrauensperson | Deputy representative for disabled persons
Bäckerstraße 13, 1010 Wien, Österreich | Vienna, Austria
T: +43 1 51581-7295
omar.siam@oeaw.ac.at | https://urldefense.com/v3/__http://www.oeaw.ac.at/acdh__;!!N4vogdjhuJM!ABhSZb1ezI_cgPgFufmVdMplTW-mgFz6hJdN-Impe8JR5Gc1G7jhmcn50jQd8XzuTyTyTeMMYVv0441MSPBUJB4VrnQ$