Accessing resources folder when running in the mendix cloud

In our application, users have the ability to choose a predefined avatar as their profile photo. When one of these images is clicked, we use the "GetFileContentsFromResource" Java action in CommunityCommons which takes the image file in the resources folder (String) and sets the image profile entity (System.FileDocument) as this image. This works perfectly when running locally, however the Java action fails in UAT with the following error: " Failed to load resource: the server responded with a status of 560 (560)" How can I use my resources in the cloud? Alternatively, is there any other way of implementing predefined selectable profile images?
1 answers