public HttpRequest send(final File input) throws HttpRequestException {
  final InputStream stream;
  try {
    stream=new BufferedInputStream(new FileInputStream(input));
    incrementTotalSize(input.length());
  }
 catch (  FileNotFoundException e) {
    throw new HttpRequestException(e);
  }
  return send(stream);
}

public HttpRequest send ( final File input ) throws HttpRequestException { final InputStream stream ; try { stream = new BufferedInputStream ( new FileInputStream ( input ) ) ; incrementTotalSize ( input . length ( ) ) ; } catch ( FileNotFoundException e ) { throw new HttpRequestException ( e ) ; } return send ( stream ) ; }
write contents of file to request body
