@Override
    public void writeTo(final OutputStream out) throws IOException {
        out.write(data);
    }
Creates a new ByteArrayBody.

@param data The contents of the file contained in this part.
@param filename The name of the file contained in this part.
httpclient5/src/main/java/org/apache/hc/client5/http/entity/mime/ByteArrayBody.java