Hi Detlef,

our REST API may be the best option for your setup [1]. You can alternative upload documents via POST, as it is e.g. done in the DBA [2]. In the latter case, using db:add could be an option, but you will need to write some RESTXQ code (see [3] for example, or check out the DBA code contained in the full distributions of BaseX).

Hope this helps,
Christian

[1] http://docs.basex.org/wiki/REST
[2] http://docs.basex.org/wiki/DBA



On Thu, Jan 12, 2017 at 1:04 PM, Detlef <detlef@schmitz-du.de> wrote:

Good Afternoon,

 

I’m developing an interface, written in Delphi 10.1 Berlin, to a remote Basex Server, using HTTP-Server

 

For uploading, I use the db:add query.

 

The problem is, that I cannot upload a file, which is stored on a local path of my computer. If this file is stored on a network resource, uploading is not a problem.

 

If I transfer the file content into a string and send this string via the above query, I got error 413 (Request entity too large)

 

How can I solve this problem.

 

Best regards

 

Detlef Schmitz