Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Read a image file From Linux server  RSS feed

 
Rodricks george
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir,


How can i access a image file found inside root/upload folder in linux server through my java code in client machine. Please give some idea

-Rodricks
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the server filesystem is mounted on your local machine, then you should be able to use the classes in the java.io package.

If not, maybe the upload directory can be shared via FTP? There are easy-to-use FTP client libraries for Java, e.g. Jakarta Commons Net.
 
Rodricks george
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear sir,

I am following what you told....



The path for linux folder is not (/root/bea/user_projects/domains/mydomain/applications/Upload)




Its running but i am getting some other filer files from server....

i am not able to get files inside applications/Upload....

Pls solve my problem...

-Rodricks
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the problem? Why are you not getting files from the upload directory? Are there any error messages? Are you checking the return values from the FTP commands? Can you "cd" to the upload directory?
 
Rodricks george
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir,

The issue was about security settings.... Now the problem is solved.. Thanks you sir

-Rodricks
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!