Dear community,
I built an app that allows the users to edit the sharepoint databses of my other apps. One option they have for one specific database is to add pictures to it. Following some internet posts, I save the pictures in Sharepoint using "Long text" as Data Type and using the formula Substitute(JSON(Item.Img_helperPicture.Image, JSONFormat.IncludeBinaryData),"""", "")
Yesterday, when testing the app, I was very successful in the beginning (after adding 17 pics), but when I added one specific I noticed that the everything became REALLY slow, specially the Sharepoint. Sharepoint after this point barely managable.
I checked the Picture values for the two pictures I added and (after a lot of fight with MS Word and MS Sharepoint) I managed to copy it into Word and count the number of characters: around 8 million.
For comparison, the other 17 pics I added previously had around 110.000 characters and they work like a plume.
Then I checked the picture files and of course the difference lies on it: the first 17 files have around 200 kB of size, the problematic one is normal photo taken with a camera that has around 5 MB.
My question. How can I overcome this? If my users, for any reason, add any picture that causes the same behaviour I saw for the first one, the app and the database will not be usable anymore, far from it.
Does anybody have any idea? Thanks in advance.