royale-asjs icon indicating copy to clipboard operation
royale-asjs copied to clipboard

ActionScript 3.0 sftp library

Open santhoshpalan opened this issue 4 years ago • 4 comments

Dear Apache Royale team , Is there any sftp client library for ActionScript 3.0?

santhoshpalan avatar Mar 21 '22 16:03 santhoshpalan

Hi, I'm not an Apache Royale team, but if you want to use sftp client, I don't think as3 would be fine because raw Sockets aren't implemented (only WebSocket). So the best and easy way is to use a javascript library and wrap it to be use by as3 code. Here is an example on how to do this : https://royale.apache.org/using-external-javascript-libraries-in-apache-royale/

cristallium avatar Apr 01 '22 07:04 cristallium

Hi @cristallium , I will c=go through the above resource. Thank you very much for your reply.

Btw, Application is packaged using HARMAN AIR. Would it still work?

santhoshpalan avatar Apr 01 '22 07:04 santhoshpalan

It seems your question wasn't for Apache Royale but for Air SDK. If this is the case, you could search for an FTP lib in as3 and use secure sockets (because sftp is ftp over TLS or SSL, but I'm not sure because of ftps ).

Here is some paths :

https://stackoverflow.com/questions/53093201/as3-negotiating-ftp-es-connection

For secure sockets : https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/SecureSocket.html

And yes, you can use https://flex.apache.org/download-binaries.html SDK (4.16.1 FP32 / AIR 32 is the latest) with adobe air runtime v32 , If you use SDK version > V32 (ie Harmann), il will need to use Harman runtime

cristallium avatar Apr 01 '22 07:04 cristallium

For browser apps, I'm pretty sure you can use BinaryUrlLoader for FTP (which uses XHR under the hood).

Harbs avatar Apr 01 '22 08:04 Harbs