You want to pick up files from a shared folder? Or from a service?
In the case of a folder-location: Is it an (s)FTP folder? Or a network folder on the same network as your application?
In the case of a service: It would depend on the kind of service that is exposed.
Would this java action still work if the app was in the cloud and the file from the network?
Community commons java action FileDocumentFromFile