I'm working with ng2-file-upload in order to upload images and files of any type, the regular example is working fine but i actually want to retrieve the blob of the file uploaded and not use the regular treatment since i'm going to do my own treatment in the server side. Can anyone please tell how to get the blob of the file uploaded after selecting it?
What i want to do is something like this :
this.uploader.onAfterAddingFile = fileItem => {
fileItem.withCredentials = false;
this.file
.uploadAttachment(fileItem)
.pipe()
.subscribe(data => {
console.log(data);
});
};