The method I suggest is as follows. Assuming you can use a scripting language on your server, first load Local Bank data into the Delphi (Android) application.
To proceed, add the Indy HTTP library and System Classes:
uses Classes, IdHTTP;
Create the required variables:
var
ParamList : TStringList; // Lista para representar o registro do banco
MyRow : TWhatever; // Esta variável hipotética representa o objeto ou array onde você terá o registro do Banco Local
HTTP : TIdHTTP; // Objeto HTTP do Indy
Put the data to be passed to the server (single table record) in TStringList
in the default format of URIs:
ParamList.Add('id=' + MyRow.ID);
ParamList.Add('name=' + MyRow.Nome);
ParamList.Add('phone_number=' + MyRow.PhoneNumber);
// Adicione todos os campos da tabela.
Next, you must create the Indy HTTP object and perform the POST to the Script on the server:
HTTP := TIdHTTP.Create(nil);
try
HTTP.Post('http://ip-ou-nome-do-servidor/pasta/do/script', ParamList);
finally
HTTP.Free;
ParamList.Free;
end;
The above example would send the First Name, Last Name, and ID data to a script on the server (possibly in PHP or another language you prefer, know or want to learn). This script in turn would perform operations on the Remote Bank (Server).
This is clearly just a generic and illustrative example. Contains the base concepts for the method.
If you are not aware of any of the above terms, I suggest you study:
- HTTP
- POST and GET
- CGI scripts