Well I reply myself since I solved my problem. I paste here how to do it, hope it may be useful for some body
HttpPost uploadBackgroundPost = new HttpPost ("http://.../");
consumer.sign(uploadBackgroundPost);
MultipartEntity entity = new MultipartEntity (HttpMultipartMode.STRICT);
FileBody tempBody = new FileBody(temp, "application/xml");
FileBody imageBody = new FileBody(imageFile, "image/jpeg");
entity.addPart("metadata", tempBody);
entity.addPart("attachment", imageBody);
uploadBackgroundPost.setEntity(entity);
DefaultHttpClient httpClient = new DefaultHttpClient();
System.out.println(httpClient.execute(uploadBackgroundPost, new BasicResponseHandler()));