摘要: 需要依赖 httpmime.jar/** * 上传图片 * * @param url * 上传地址 * @param filepath * 图片路径 * @return */public String uploadImage(String url, String filepath) { File file = new File(filepath); if (!file.exists()) { Log.i("leslie", "file not exists"); return null; } Ht... 阅读全文
posted @ 2014-03-12 14:03 LeslieFang 阅读(7189) 评论(0) 推荐(0)
摘要: Put 用于全部更新Patch 用于部分更新重写一下 HttpPut 或 HttpPost 的 getMethod 方法/** * Send a patch request */public class HttpPatch extends HttpPut { public HttpPatch(String url) { super(url); } @Override public String getMethod() { return "PATCH"; }} 阅读全文
posted @ 2014-03-12 11:34 LeslieFang 阅读(2279) 评论(0) 推荐(0)