Open sagrawal31 opened 5 years ago
Any update here?
The trouble with this patch is its mysql specific. The code should be changed to BLOB, but if anything this is a bug in mysql that it insists on departing from other databases in having different blobs.
Your point makes sense @xpusostomos but if I consider MongoDB as "other databases", there is no need to even specifying a length as the database doesn't support any kind of such validation.
AsynchronousMailAttachment
domain adds amaxLength
validation of 30MB but according to this SO answer https://stackoverflow.com/questions/3503841/jpa-mysql-blob-returns-data-too-long, the default type ofbyte[] content
isBLOB
hence only65,535 bytes
(64 kb) is allowed. This PR changing the datatype toLONGBLOB
to allow saving at least 30MB of file.