Keep in mind that Dynamic Data (DD) has a 350K limit on data stored.
This only really affects images converted to base64.
If your data size exceeds this limit, you will be presented with a 413 error similar to the one in the screenshot below that states something like:
Error: patchDataRow(): Failed to patch row <rowid> in table <tablename> : 413 HTTP content length exceeded 10485760 bytes
In order to work around this, you need to set the imageQuality
of your media-picker low enough so that the files are small enough to store.
The imageQuality
property allows you to compress the image and is defined in a value from from 0 to 100, where 100 is the best quality.
On iOS, values larger than 80 donβt produce a noticeable quality increase in most images, while a value of 80 will reduce the file size by about half or less compared to a value of 100.
Bear in mind that base64
encoding grows the file size by roughly 30%.
Below is an example of how imageQuality is specified and can be used to compress your image(s):