Hi,
You can Ignore this kind of problem using '/file?guid='+GUIDofDocument
Thanks.
The only files you can access from Java using the Mendix Cloud are those located in your applications resources folder.
So if you wanted to access a file called “test.pdf” in your resources folder you would use something like the following to get the filename.
String filename = Core.getConfiguration().getResourcesPath() + Core.getConfiguration().getFileSeparator() + "test.pdf";
The two API methods in the Configuration you need are getResourcesPath() and getFileSeparator().
https://apidocs.rnd.mendix.com/8/runtime/com/mendix/core/conf/Configuration.html#getResourcesPath()
https://apidocs.rnd.mendix.com/8/runtime/com/mendix/core/conf/Configuration.html#getFileSeparator()
I hope this helps.