I want to make a program in swing which connect to tomcat server running locally. with username,password authentication, then user able to upload file in server directory. ie.http://localhost:8080/uploadfiles. from user defined file path , and same as download to the local directory.
相关问题
- Angular RxJS mergeMap types
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
Here is one possibility: Download:
Upload:
Now, on the server side, you will need to distinguish between GET and POST requests and handle them accordingly. You will need a library to handle uploads, such as apache FileUpload
Oh, and on the client side, you will need a library that does Base64 encoding such as apache commons codec