multipfilepicker added

This commit is contained in:
Eudes Inácio
2022-03-25 09:25:05 +01:00
parent 8c3fa15aa5
commit edc237124b
8 changed files with 171 additions and 34 deletions
@@ -750,7 +750,8 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
this.downloadFile = 'data:image/jpeg;base64,' + btoa(new Uint8Array(event.body).reduce((data, byte) => data + String.fromCharCode(byte), ''));
} else if (msg.file.type === 'application/pdf') {
this.downloadFile = event.body;
this.downloadFile = 'data:application/pdf;base64,' + btoa(new Uint8Array(event.body).reduce((data, byte) => data + String.fromCharCode(byte), ''));;
console.log(this._arrayBufferToBase64(event.body))
}
msg.attachments[0] = {