I want to insert images and I want each record to have a maximum of 100M, if this value is exceeded, an error must be returned in the bank itself.
For illustration example of problem: (same as error is returned if we try to insert a string of 35 characters in a varchar (30) column, must do with the image bigger than 100M).
So if the uploaded image is larger than 100M the bank should report the error and reject the record, I will use the following table as an example and its generated error:
CREATE TABLE imagem
(
ID NUMBER(5) NOT NULL,
NOME VARCHAR2(50),
IMG BLOB(100M)
)
Error at line 1 ORA-00907: missing right parenthesis