Handling Base64 String Size Exceeds Limit in API Response
0
Hi all, I am encountering an issue when trying to fetch a base64 string from an API. The API is returning a 21 MB base64 string, representing a file. When Mendix attempts to handle this, it throws the following error: 'String value length (20054016) exceeds the maximum allowed (20000000, from StreamReadConstraints.getMaxStringLength())'.Could you please advise how to handle this scenario effectively and what solutions or workarounds. The following error i am getting.
asked
Kayalvizhi P
1 answers
0
Hi,
you can take file document as binary instead of base64 as binary takes less space