Skip to content

Instantly share code, notes, and snippets.

View sheilambadi's full-sized avatar
🎯
Focusing

Sheila Mbadi sheilambadi

🎯
Focusing
  • Carnegie Mellon University Africa
  • Nairobi, Kenya
  • 14:05 (UTC +03:00)
View GitHub Profile
@damianmcdonald
damianmcdonald / ApacheHttpClientMultiPartUpload.java
Created July 19, 2015 12:00
Multi Part Upload using Apache HttpClient 4
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.ContentType;
import org.apache.http.entity.mime.HttpMultipartMode;
import org.apache.http.entity.mime.MultipartEntityBuilder;
import org.apache.http.impl.client.HttpClientBuilder;
import org.json.JSONObject;