C# 在asp.net服务器中接收loopj httpclient发送的文件
我想将图片从Android设备保存到我的ASP.NET服务器 android中的代码如下:C# 在asp.net服务器中接收loopj httpclient发送的文件,c#,android,asp.net,loopj,C#,Android,Asp.net,Loopj,我想将图片从Android设备保存到我的ASP.NET服务器 android中的代码如下: AsyncHttpClient client = new AsyncHttpClient(); RequestParams params = new RequestParams(); params.put("name", fileName); try { File imageFile = new File(mPath); params.put("image", imageFile); }
AsyncHttpClient client = new AsyncHttpClient();
RequestParams params = new RequestParams();
params.put("name", fileName);
try {
File imageFile = new File(mPath);
params.put("image", imageFile);
} catch(FileNotFoundException e) {
Log.e("onStart", "fail to get imagefile");
}
client.get(url, params, new AsyncHttpResponseHandler() {
...
}
但是,我似乎无法使用C在服务器上获取文件
有人能给我举个例子如何获取我的文件吗?我觉得自己很愚蠢,结果我不得不更改一个单词 由此: client.geturl,参数,新的AsyncHttpResponseHandler{ 致:
client.postgetApplicationContext、url、params、新的AsyncHttpResponseHandler{…您有什么解决方案吗?