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

Popular posts from this blog

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -