public HttpRequest part(final String name, final String filename,
      final String contentType, final File part) throws HttpRequestException {
    final InputStream stream;
    try {
      stream = new BufferedInputStream(new FileInputStream(part));
      incrementTotalSize(part.length());
    } catch (IOException e) {
      throw new HttpRequestException(e);
    }
    return part(name, filename, contentType, stream);
  }
Write part of a multipart request to the request body

@param name
@param filename
@param contentType
         value of the Content-Type part header
@param part
@return this request
@throws HttpRequestException
lib/src/main/java/com/github/kevinsawicki/http/HttpRequest.java