Hi – do these threads below Re: using Java actions to send a file to a PC drive, only work if the app ISN’T on the cloud? Just making sure. Would be great if these Java methods would work for a cloud-based app. Secondly, not sure how to feed a document as a file parameter to these Java actions … Just via a microflow parameter? https://forum.mendix.com/link/questions/3698 https://forum.mendix.com/link/questions/3073
That’s correct – a cloud-hosted app cannot interact with a user’s local network. It can only interact with the network in which the server lives. As in the other thread, you’ll need to use SFTP or an API-based solution like OneDrive, Dropbox, etc.
As for the Java action, files in Mendix are just entities that extend the System.FileDocument entity. So, to pass a document to a Java action, you simply pass the object that represents that file.