code: public java.sql.Blob getBlob(final Object value) throws SQLException {
              if (value instanceof java.sql.Blob) return (java.sql.Blob) value;
  
              if (value instanceof byte[]) {
                  return new SerialBlob((byte[]) value);
              }
docs: Tries to get BLOB from raw |value|.
  
  @param value the binary value
  @return the created BLOB
  @throws SQLException if fails to create the BLOB