[basex-talk] Help composing an http:request with POST

2020-05-20 Thread Bridger Dyson-Smith
Hi all - I'm trying to use BaseX to POST an image to a digital asset management system (i.e. I'm not using RESTXQ, etc, just using BaseX to compose and send the request). The request: http:send-request( , ' http://localhost:8080/fedora/objects/tdh:2/datastreams/OBJ?versionable=true?

[basex-talk] util:item - java.lang.NullPointerException

2020-05-20 Thread Sebastian Guerrero
Hi BaseX team! I have a database with a text-index for a node named "*serial-number"* with 2,164,980 occurrences of text '*000*'. *[1]* If I execute : *util:item(db:text("US02", "000"), 1)* I get '000', as expected. But, If I execute: * util:item(db:text("US02", "000"), 2) *

Re: [basex-talk] Help composing an http:request with POST

2020-05-20 Thread Bridger Dyson-Smith
Hi all - Well... after staggering around and clutching my head for a few hours I realized that I didn't need the `multipart` at all (tricked by tricky API documentation, once again!). http:send-request( , 'http ://localhost:8080/fedora/objects/tdh:2/datastreams/OBJ?versionable=true?dsLocat