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

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -