code: public void addFilePart(final String fieldName, final URL urlToUploadFile)
          throws IOException
      {
          //
          // Maybe try and extract a filename from the last part of the url?
          // Or have the user pass it in?
          // Or just leave it blank as I have already done?
          //
          addFilePart(fieldName,
                      urlToUploadFile.openStream(),
                      null,
                      URLConnection.guessContentTypeFromName(urlToUploadFile.toString()));
      }
docs: Adds a upload file section to the request by url stream
  @param fieldName name attribute in &lt;input type="file" name="..." /&gt;
  @param urlToUploadFile url to add as a stream
  @throws IOException if problems