开发者

How to send a file from client to server in Java

开发者 https://www.devze.com 2023-01-13 03:03 出处:网络
How do I send an image to a server for post-processing? From server to client is easy, but when it comes to the opposite, which is the best开发者_开发问答 way to proceed? I would use FTP. Use Apache F

How do I send an image to a server for post-processing? From server to client is easy, but when it comes to the opposite, which is the best开发者_开发问答 way to proceed?


I would use FTP. Use Apache FTP libraries.

Client side: Jakarta commons net: http://commons.apache.org/net/

Server side: Apache FTP Server: http://mina.apache.org/ftpserver/


You don't terminate the connection, but send the processed image through the outputstream of the connection on the server side.

0

精彩评论

暂无评论...
验证码 换一张
取 消