0
我想将Android设备中的图片保存到我的ASP.NET服务器。接收由asp.net服务器中的loopj httpclient发送的文件
在Android的代码是这样的:
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#,让我的服务器上我的文件。
有人请给我一个例子如何让我的文件?
你有什么解决方案吗? – Ram