This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Applets and the fly likes Install a file from server to local machine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Install a file from server to local machine" Watch "Install a file from server to local machine" New topic
Author

Install a file from server to local machine

Rodricks george
Ranch Hand

Joined: Sep 10, 2006
Posts: 97
Dear Sir,

I want to load and save a file name jTwain.dll inside C:\windows ... i have the file in my server ear file..... how can i check the file whether it is found or not in local drive and if not i want to forcely install the file from my Application.... I use applet in jsp....
please help me

-Rodricks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41092
    
  44
To perform file I/O on the local machine, the applet needs to be signed (see HowCanAnAppletReadFilesOnTheLocalFileSystem). The file in question needs to be accessible to the applet, so it must be in the applet jar, or some other publicly accessible directory on the web server.


Ping & DNS - my free Android networking tools app
Rodricks george
Ranch Hand

Joined: Sep 10, 2006
Posts: 97
Dear Sir,

I have created an applet and i want to change to policy file manually for running the applet... can i run the applet by setting the policy file through code or is there any alternative for that.. please help me...

-Thanks

Rodricks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41092
    
  44
The policy file can't be changed programmatically; you need to do it manually.
Rodricks george
Ranch Hand

Joined: Sep 10, 2006
Posts: 97
Dear Sir,


Is there any other option to give permission to applet.

-Rodricks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41092
    
  44
The only other way is to sign it, as that page explains.
Rodricks george
Ranch Hand

Joined: Sep 10, 2006
Posts: 97
Dear Sir,


Thanks you so much.

-Rodricks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Install a file from server to local machine
 
Similar Threads
Uploading File??
execute ftp commands using java API
How to download a text file
How to select the destination at run time while uploading a file.
CVS installation issues