Powebuilder Mobile FTP?

1
0
-1

Hello everyone!

In my ultimate despair i came here to ask u about using FTP in powerbuilder mobile. I search a solution everywhere with no success.

My problem is that i want to upload to and download from a FTP server. It's all. I can't find any function or anything else. Of course this would be an offline application so i don't want to use the "Mobile Server" to solve this problem.

 I hope someone can help me. Thank you!

Best regards:

David

Question Tags: 

Answers

Marco Meoni answered Powebuilder Mobile FTP?

1
0
-1

Hi David,

FTP support in PB is historically done through wininet, which is of course not available in mobile apps.

The usual workaround in a PowerServer Mobile setup is to wrap wininet into a PB NVO and deploy it as a .NET WebService. Then you can call the WS using the AppeonWebserviceComponent object or a WS Datawindow. 

Unfortunately, if you even need to make your app offline, PSM can’t help you and the only solution left would be to use the cordova-plugin-ftp plugin, which however is not yet among the plugins packaged into Appeon. If this last solution suits you, you may want to open an Appeon ticket of feature enhancement.

Cheers,

Marco

Chris Pollach answered Powebuilder Mobile FTP?

1
0
-1

Hi David;

   Another alternative is to use the "of_appeonupload" method of the appeonfileservice object class. This could take your Mobile device file and deliver it from your device to PowerServer's File Server feature on the server where its running. From there, you could re-route this uploaded file to any other FTP destination. Conversely, external data loaded onto PowerServer's File Server area could then be downloaded to the Mobile device using the "of_appeondownload" method.

  Food for thought.

 HTH

Regards ... Chris

marco.meoni@gmail.com's picture

just be aware Appeon File Service uses HTTP, not FTP.

And it does need the Powerserver.

Cheers,

Marco