• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing Files From Servlets

 
abhijit salvithal
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,


I have a problem. When try to create file instance form File(URI) constructor of file.
I m creating URI by passing string url to URI like http://localhost:8080/testApp/myFile.txt
when i type this on browser i can see the file but i not able to access via File by passing the same uri.

Thanks in Advance & Regards,
Abhijit
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abhijit,

Can you tell us what you mean by "access" the file?
Are you trying to download it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic