• Post Reply Bookmark Topic Watch Topic
  • New Topic

how can i read local file from server side?  RSS feed

 
Wasin Raktham
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I'm new Java.

I need to write a code to read a folder in C:\ from server side.

I tried to read about java.policy. But I don't understand about it.

Please explain me how to fix this problem.

Thank you!!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where is "C:\"? On the server, or on the client? If the former, simply use normal Java file I/O. If the latter, you can't do that.

To get a file from the client to the server, you'll need to have the user upload the file. See the JSP FAQ for information on creating upload capability.
 
Wasin Raktham
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Where is "C:\"? On the server, or on the client? If the former, simply use normal Java file I/O. If the latter, you can't do that.

To get a file from the client to the server, you'll need to have the user upload the file. See the JSP FAQ for information on creating upload capability.


Drive C:\ on server.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What specific issue are you having?
 
Wasin Raktham
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:What specific issue are you having?


When I compile it shown me access denied <<all files>> execute
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You get a *compilation* error?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!