feat: convert data to base64 for interpretation while recording
This commit is contained in:
@@ -229,8 +229,10 @@ export class WorkflowInterpreter {
|
|||||||
this.socket.emit('serializableCallback', data);
|
this.socket.emit('serializableCallback', data);
|
||||||
},
|
},
|
||||||
binaryCallback: async (data: Buffer, mimetype: string) => {
|
binaryCallback: async (data: Buffer, mimetype: string) => {
|
||||||
this.binaryData.push({ mimetype, data: JSON.stringify(data) });
|
const base64Data = data.toString('base64');
|
||||||
this.socket.emit('binaryCallback', { data, mimetype });
|
const binaryObject = { mimetype, data: base64Data };
|
||||||
|
this.binaryData.push(binaryObject);
|
||||||
|
this.socket.emit('binaryCallback', binaryObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user