Add base64 handling for binary data in filter and grid components

This commit is contained in:
Stela Augustinova
2025-10-29 15:08:57 +01:00
parent aa7fb74312
commit 417334d140
5 changed files with 16 additions and 4 deletions

View File

@@ -10,6 +10,9 @@
if (value?.type == 'Buffer' && _.isArray(value?.data)) {
return 'data:image/png;base64, ' + btoa(String.fromCharCode.apply(null, value?.data));
}
if (value?.$binary?.base64) {
return 'data:image/png;base64, ' + value.$binary.base64;
}
return null;
} catch (err) {
console.log('Error showing picture', err);