Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Uploader() throws ClientProtocolException, IOException{
- file = new File( local_file_path , file_name);
- bin = new FileBody(file);
- httppost = new HttpPost( url_string );
- httpclient = new DefaultHttpClient();
- reqEntity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE);
- reqEntity.addPart("schools", bin);
- httppost.setEntity(reqEntity);
- response = httpclient.execute(httppost);
- resEntity = response.getEntity();
- if (resEntity != null) {
- Log.i("RESPONSE",EntityUtils.toString(resEntity));
- }
Add Comment
Please, Sign In to add comment