mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 03:16:00 +00:00
Handle binary data in load cell from file by converting Buffer to base64
This commit is contained in:
@@ -799,8 +799,9 @@
|
|||||||
isText
|
isText
|
||||||
? data
|
? data
|
||||||
: {
|
: {
|
||||||
type: 'Buffer',
|
$binary: {
|
||||||
data: [...data],
|
base64: data.toString('base64'),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user