Dear Christian,

 

in the meantime, I developed a Basex client in Delphi 10.1 Berlin.

 

This client is similar to the other clients, written in Java or C++.

 

If you are interested in, I could forward the unit to you, but, in the moment, without any example of using.

 

Detlef

 

Von: Christian Grün [mailto:christian.gruen@gmail.com]
Gesendet: Donn
erstag, 12. Januar 2017 13:59
An: Detlef
Cc: BaseX
Betreff: Re: [basex-talk] Upload XML File to Remote Basex Server with database module

 

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

[3] http://docs.basex.org/wiki/RESTXQ#File_Uploads

 

 

 

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