aspose file tools*
The moose likes I/O and Streams and the fly likes Remote file access from the web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Remote file access from the web application" Watch "Remote file access from the web application" New topic
Author

Remote file access from the web application

az ziz
Ranch Hand

Joined: Dec 17, 2008
Posts: 50
dear all,

ours is a big web app which uses jasper reports. I have written a scheduler that generates reports in pdf format, stores it to a file server, indexes it using lucene framework. From the web application the end-user searches for the report and if found he prints it. All i need to do now is search the index present in the remote file server. the search returns an array for files found with its paths. il read the file using the path and send data to the browser. I got this working if it got to be in local file system. how about a remote file server which has access credentials? are there any frameworks apis specially developed for remote file access? i haven't tried with the regular File class.

Thanks

V
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42285
    
  64
i haven't tried with the regular File class.

What kind of access is provided by the remote server - SMB? If so, try the jCIFS library. If the client JVM runs on Windows then even that may not be necessary - java.io.File will do.


Ping & DNS - my free Android networking tools app
az ziz
Ranch Hand

Joined: Dec 17, 2008
Posts: 50
Thanks for your reply Mr. Dittmer. The remote server supports SAMBA. The system from which i connect remote, that is the WAS, is running RHEL. In production WAS runs on AIX.

thanks
V
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Remote file access from the web application