@4j1th said:
Hi @Paul-Colby , by using the first method how can I access the file (in server), is it works as a file uploading method ?
It depends on your server. What language is your server written with? (Assuming you're POSTing to your own server, and not some third-party API).
For example, the server was running PHP, you could do something like:
$data = json_decode(file_get_contents('php://input'), true);
// save $data to a file somewhere.
In that case, you wouldn't need to use WWW form encoding.