i'm trying to post data to a server. This is possible (and working) by point array of data. A very long string is the result
Also the server api accepts a file, much easier.
this works when posting it in browser
using the same code, but the path is replaced by android path pointing to the same file.
In that case the server gives a error.
How should this work without a browser. Somehow the file should be collected and send to the server, which task is the browser i suppose.
Used Job.poststring to archieve this
I tried already to use job.postfile and job.postmultipart both giving a EOF
Anyone a idea?
Also the server api accepts a file, much easier.
this works when posting it in browser
B4X:
/trips.json?trip%5Bname%5D=test&trip%5Bdescription%5D=test&trip%5Bbad_elevations%5D=false&file=C%3A%5Cfakepath%5CAll_in_one_APP.gpx
In that case the server gives a error.
How should this work without a browser. Somehow the file should be collected and send to the server, which task is the browser i suppose.
Used Job.poststring to archieve this
I tried already to use job.postfile and job.postmultipart both giving a EOF
Anyone a idea?