byteArrayBodyParser.setContentType(contentType);
byteArrayBodyParser.setContentDisposition(contentDisposition);
byteArrayBodyParser.setCharset(charset);
byteArrayBodyParser.setTransferEncoding(transferEncoding);
HttpRequestByteArrayBodyData byteArrayBodyData = (HttpRequestByteArrayBodyData) byteArrayBodyParser.parse(inputStream);
String filename = contentDisposition.getDispositionType().getValue("filename");
String name = contentDisposition.getDispositionType().getValue("name");
String mimeType = contentType.getMediaType().getType();
return new HttpRequestFileBodyData(name, filename, mimeType, byteArrayBodyData.getData());
}