开发者

how to upload the datas to webserver from android mobile

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜