code: public static Object convertBlob(Connection conn, InputStream input) throws SQLException {
          return convertBlob(conn, toByteArray(input));
      }
docs: Transfers data from InputStream into sql.Blob
  
  @param conn  connection for which sql.Blob object would be created
  @param input InputStream
  @return sql.Blob from InputStream
  @throws SQLException