Java中的UploadFileAsync?
如何用Java将文件上传到服务器(API接口),就像.NET程序员在C#中所做的那样: 试图通过使用HttpClient找到一种方法,但没有成功。我相信这就是您想要的。通读这些文件,我相信你能找到你的路Java中的UploadFileAsync?,java,.net,Java,.net,如何用Java将文件上传到服务器(API接口),就像.NET程序员在C#中所做的那样: 试图通过使用HttpClient找到一种方法,但没有成功。我相信这就是您想要的。通读这些文件,我相信你能找到你的路 AsyncHttpClient client = new AsyncHttpClient(); Response response = client.preparePut(("http://sonatype.com/myFile.avi").execute(); 另一个解释其用法的博客:
AsyncHttpClient client = new AsyncHttpClient();
Response response =
client.preparePut(("http://sonatype.com/myFile.avi").execute();
另一个解释其用法的博客:man,谢谢。几天来一直在想怎么做。谢谢。
AsyncHttpClient client = new AsyncHttpClient();
Response response =
client.preparePut(("http://sonatype.com/myFile.avi").execute();