docs: public static Attachment fromBinaryFile( File file, MediaType mediaType ) throws IOException {
          FileInputStream stream = new FileInputStream( file );
          try {
              return fromBinaryInputStream( stream, mediaType );
          } finally {
              ResourceUtil.close( stream );
          }
      }