我将使用以下 Android Java 代码将图像上传到C#服务器API:
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost(FILE_UPLOAD_URL);
AndroidMultiPartEntity entity = new AndroidMultiPartEntity();
File sourceFile = new File(filePath);
// Adding file data to http body
entity.addPart("image", new FileBody(sourceFile));
totalSize = entity.getContentLength();
httppost.setEntity(entity);
// Making server call
HttpResponse response = httpclient.execute(httppost);
HttpEntity r_entity = response.getEntity();
从C#端API到接收此图像的等效代码是什么?