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
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
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: Donnerstag, 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
Hi Detlef,
Thanks for the update. Yes, feel free to forward us your client code!
Christian
On Mon, Feb 6, 2017 at 3:31 PM, Detlef detlef@schmitz-du.de wrote:
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:* Donnerstag, 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
Hi Christian
Here is my client code, written in Delphi.
For the communication, I used Tidtcpclient from the Indy Project.
Detlef
Von: Christian Grün [mailto:christian.gruen@gmail.com] Gesendet: Montag, 6. Februar 2017 15:53 An: Detlef Cc: BaseX Betreff: Re: [basex-talk] Upload XML File to Remote Basex Server with database module
Hi Detlef,
Thanks for the update. Yes, feel free to forward us your client code!
Christian
On Mon, Feb 6, 2017 at 3:31 PM, Detlef detlef@schmitz-du.de wrote:
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: Donnerstag, 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
basex-talk@mailman.uni-konstanz.de