Angular 6: Download file after getting File object from backend server
问题 I have a File object type of structure {type: "Buffer", data: Array(702549)}, what do I need to do in angular 6 in order to download this file in browser? I get my response from this function: getMarketingProposalById(id: string): Observable<MarketingProposal> { return this.httpClient.get<MarketingProposal>(this.apiUrl + id , this.httpOptions).pipe(map(marketingProposal => { if (marketingProposal.materials[0] && marketingProposal.materials[0].file) { const blob = new Blob([marketingProposal