FileDocument objects are stored in the Mendix database, so you can use the ‘getGUID” java action from the CommunityCommons module, just like any other object. When you retrieve a filedocument object, it's binary contents are automatically retrieved from the file storage.