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.
精彩评论