fix: display content of BLOB fields if not binary, fixes #628

This commit is contained in:
Fabio Di Stasio 2023-07-21 18:17:31 +02:00
parent 3104847b92
commit f831fcd442
1 changed files with 3 additions and 1 deletions

View File

@ -589,7 +589,9 @@ const typeFormat = (val: string | number | Date | number[], type: string, precis
}
if (BLOB.includes(type)) {
const buff = Buffer.from(val as string);
if (typeof val === 'string') return val;
const buff = Buffer.from(val as unknown as ArrayBuffer);
if (!buff.length) return '';
const hex = buff.toString('hex').substring(0, 8).toUpperCase();