how to exchange data between online and offline

how to exchange data between online and offline

Postby Otto » Wed Jan 22, 2020 10:55 am

Hello,
How should we organize the exchange of data between online and offline.
SQL Transfer or FTP?

Thank you in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Re: how to exchange data between online and offline

Postby Otto » Thu Jan 23, 2020 8:44 pm

Dear Antonio,
When mod harbour servers are ready, how do you suggest to upload data from desktop to the server?
Best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Re: how to exchange data between online and offline

Postby Antonio Linares » Fri Jan 24, 2020 5:54 am

Dear Otto,

SFTP or SSH

You can use midnight commander to easily do it :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: how to exchange data between online and offline

Postby Otto » Fri Jan 24, 2020 7:03 am

Dear Antonio,

Thank you.
What is if FTP is blocked.
I ask, as in many cases, sysadmins block FTP at the customer side.
Are there other ways. HTTP?
Thank you and best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Re: how to exchange data between online and offline

Postby Antonio Linares » Fri Jan 24, 2020 10:58 am

Yes, http can be used too

Please review mod_harbour\samples\sendfile.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: how to exchange data between online and offline

Postby TimStone » Fri Jan 24, 2020 4:43 pm

Here is a broader consideration.

Some commercial applications are synchronized with the online database. That means the data pool exists on both the cloud server, and the local machine. If an internet connection is lost, the user continues to work on the local machine / data, but when the connection resumes, the data is automatically synchronized. In this scenario, the actual forms, etc, are maintained on the local machine ( app ), but the data is maintained in the cloud.

IMO, when we can accomplish this, we truly add deep value to our offerings.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2945
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: how to exchange data between online and offline

Postby Antonio Linares » Fri Jan 24, 2020 7:44 pm

If we are talking about a web app then "local storage" limitations apply:

https://stackoverflow.com/questions/2989284/what-is-the-max-size-of-localstorage-values
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 55 guests