code: public static Object convertBlob(Object blob, InputStream input) throws SQLException {
          return convertBlob(blob, toByteArray(input));
      }
docs: Transfers data from InputStream into sql.Blob
  
  @param blob  sql.Blob which would be filled
  @param input InputStream
  @return sql.Blob from InputStream
  @throws SQLException