The environment is MAVEN-based WILDFLY container.
I can retrieve the URI of file as
Foo.class.getClassLoader().getResource("/images/nir.png");
how can I programmatically add a file on that folder?
I did something like this:
Foo.class.getClassLoader().getResource("/text/");
OutputStream stream = new FileOutputStream(newjava.io.File(loader.getFile()+"1.txt"));
//add something on 1.txt, save it on web-inf folder!!
and from web, if I had to connect to this. Why am I not able to do so?
like, to access to server
http://server/text/1.txt
Why doesn't it work this way?