mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
add and view docments on chat solved
This commit is contained in:
@@ -456,12 +456,12 @@ export class MessageService {
|
||||
if (this.file.type == "application/img") {
|
||||
downloadFile = 'data:image/jpeg;base64,' + btoa(new Uint8Array(event.body).reduce((data, byte) => data + String.fromCharCode(byte), ''));
|
||||
} else if (this.file.type != "application/img") {
|
||||
downloadFile = new Uint8Array(event.body).reduce((data, byte) => data + String.fromCharCode(byte), '');
|
||||
downloadFile = event.url
|
||||
/*
|
||||
let */
|
||||
/* downloadFile = btoa(new Uint8Array(event.body).reduce((data, byte) => data + String.fromCharCode(byte), '')); */
|
||||
console.log('downloaded file', downloadFile)
|
||||
console.log('event body downloaded file', event.body)
|
||||
console.log('event body downloaded file', event.url)
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user