I\'m trying to upload an image file via http post method from android device to rails server. But posting an image is not working. More specifically, the post parameter (inc
There's a description like below, in Android AsyncHttpClient official page (http://loopj.com/android-async-http/)
"Multipart file uploads with no additional third party libraries"
and in the section of "Uploading Files with RequestParams", they have a sample code to upload an image
File myFile = new File("/path/to/file.png");
RequestParams params = new RequestParams();
try {
params.put("profile_picture", myFile);
} catch(FileNotFoundException e) {}
This is what I did, though didn't work. Does this help answering my question?