@Test public void testAdd() throws IOException { HttpPost post = new HttpPost("http://localhost:8182/api/media/add?app=test&access_token=1234&fileName=测试一下.jpg&ContentType=image/jpeg"); HttpEntity entity = new FileEntity(new File(&qu…
HttpPost httpPost = new HttpPost(url); MultipartEntity reqEntity = new MultipartEntity(); if (!imageurl.equals("")) { FileBody file = new FileBody(new File(imageurl)); r…