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

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -