@Override
    public long getContentLength() {
        return data.length;
    }
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