Accessing a file After deploment

0
Hi All,   In my project I am using a custom java action. In the java code it requires a file access path to get appropriate results. While testing locally it works fine for me as I give path as “C:\\Users\\Rebam\\Documents\\file.txt”. So after deployment of the code where should I save the file file.txt and what server path should be given to get the access of file and give appropriate results for my java action.- Please do help on this   Regards, Cyril
asked
2 answers
1

 

You can use the following code to access the TMP path on the mendix server. But please note the size of this space is limited. If I remember correctly around 2GB.

 

File directory = Core.getConfiguration().getTempPath();

 

answered
0

Why do you need to load the file from a file system?

Would it be possible to pass the .txt contents as a String parameter to your JA? 

answered