开发者

How to send a file from client to server in Java

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜