java - How to get path of a file in local machine from webapplication -
i'm trying upload excel file application , trying store data in db , working in system. when im trying other machine i'm getting error path not found.
the reason error known. it's because file path belongs other system , server(tomcat) in system. when passed path parameter server searching in system.
so here question how access file system.?
you need take path network related in :
file filetoread = new file(new uri("file://myserver/myfolder/myfolder/mypicture.jpg"));
Comments
Post a Comment