mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
add image to chat done!
This commit is contained in:
@@ -623,7 +623,7 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
//const imageData = await this.fileToBase64Service.convert(file)
|
//const imageData = await this.fileToBase64Service.convert(file)
|
||||||
//console.log('ADDFILECHAT', imageData)
|
//console.log('ADDFILECHAT', imageData)
|
||||||
|
|
||||||
const response = await fetch(file.base64String!);
|
const response = await fetch('data:image/jpeg;base64,'+ file.base64String!);
|
||||||
const blob = await response.blob();
|
const blob = await response.blob();
|
||||||
|
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
|
|||||||
Reference in New Issue
Block a user