Does anyone have experience sending files using %Net.FtpSession? I am not seeing any methods in the class for sending files and setting up an Ensemble production is not an option. Any advice would be appreciated. Thank you.
In that case you'll want to use %Net.SSH.Session to connect to the site and once signed in use the OpenSFTP method to open a SFTP session to be able to make %Net.SSH.SFTP calls, in particular the Put or PutStream method
Have a look at the Store and StoreFiles methods: https://docs.intersystems.com/irislatest/csp/documatic/%25CSP.Documatic....
Thanks will do. Do these work for SFTP as well?
That method https://docs.intersystems.com/irislatest/csp/documatic/%25CSP.Documatic.cls?&LIBRARY=%25SYS&CLASSNAME=%25Net.FtpSession#Store worked for me. Thank you!
Is there some reason why you want to use FTP instead of SFTP?
Actually it is SFTP. Sorry for the inaccuracy.
In that case you'll want to use %Net.SSH.Session to connect to the site and once signed in use the OpenSFTP method to open a SFTP session to be able to make %Net.SSH.SFTP calls, in particular the Put or PutStream method
Social networks
InterSystems resources
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue