I am using params.put
to post the strings
to the server
. But how do I post an image which is saved in the variable imgPreview
.
comp_logo_id is the image field in Rest Api.
Here is My code:
params.put("title", title);
params.put("comp_logo_id", comp_logo_id);
params.put("company_name", company_name);
params.put("industry_selected", industry_selected);