Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to access remote folder files without using ftp or tftp using java

 
sara vana
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to access remote folder files without using ftp or tftp using java
 
Greg Charles
Sheriff
Posts: 3010
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, there are many ways. At the OS layer, you could mount the remote file system as a network drive. Then Java could access the files the same way as it does local files.

Back in the day though, I implemented a remote file browser. It had an RMI server on the machine with the remote files and an RMI client on the client machine. Then I could open Java's file browser on the client, but actually see files from the remote machine.
 
Ireneusz Kordal
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you only want to read a file content without browsing folders etc.
and if you know an exact url of the file, you can do it with a few lines of code,
here is a working example:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!