Re: question about finding the size of a DB column

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Dhiraj!

On 05.02.2022 17:04, Dhiraj Holden wrote:
I have started looking at this bug <https://bugs.documentfoundation.org/show_bug.cgi?id=138691> about Base crashing with Firebird when using a form to insert an image that does not fit in a binary field. The proposed fix was to check in xref/core/ forms/source/component/ImageControl.cxx whether the image was bigger than the database column. In order to do this, I need to find the size of the image and the column. How should I proceed?

Maybe this form control should get an optional max size property, which could be set according to the underlying field size; then the code could check that in OImageControlModel::setFastPropertyValue_NoBroadcast (for PROPERTY_ID_IMAGE_URL and PROPERTY_ID_GRAPHIC).

--
Best regards,
Mike Kaganski



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux