RequestException {
FormDataMultiPart part = new FormDataMultiPart();
if (description != null) {
part.bodyPart(new FormDataBodyPart("description", description));
}
part.bodyPart(new FileDataBodyPart("file", file,
MediaType.APPLICATION_OCTET_STREAM_TYPE));
ClientResponse response = (ClientResponse) webResource
.accept(MediaType.APPLICATION_XML)
.type(Boundary.addBoundary(MediaType.MULTIPART_FORM_DATA_TYPE))
.header("description", description)