开发者

how to upload the datas to webserver from android mobile

开发者 https://www.devze.com 2023-01-30 17:41 出处:网络
how to upload the da开发者_运维问答tas towebserver from android mobile.Please provide coding I think this compiles:

how to upload the da开发者_运维问答tas to webserver from android mobile.Please provide coding


I think this compiles:

HttpPut request = new HttpPut(<uri>);
request.setEntity(new ByteArrayEntity(<your data>));
HttpResponse response = HttpClient.execute(httpPut);

You might want to use the HttpPost instead of HttpPut and also specify the content type on the request.

0

精彩评论

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

关注公众号