java - how to know the correct path of my file in web service ( File Exception ) -


i working java web service, service includes methods should read data file, , client of service has send path of file string, when try , send path, got trouble , error was:

  readfile.client.ioexception_exception: src\rm.txt (the system cannot find path specified) 

( file exist in src folder - source code folder -

is there suggestion?

thanks

put file in web-inf , can access "filename".

but add method witch let client know files available , return path server, not affect client if change name or other things.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -