简体   繁体   中英

downloading file from server to local machine using javascript and java

Whenever I click on one button it has to get one directory from other server and has to download onto the local machine. How can I do that using java and javascript.?

Thanks in advance.

Edit

I'm using linux Os. Whenever I click on Download button from local machine(IP address:10.180.66.33), it has to connect to server(IP address:10.180.14.2) with username,passwd and it has to download one directory /home/alvin/project1/ to local machine(10.180.66.33). How can I do this?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM