From c893a2820b9fea7cfad2d75506e6b70f165ab625 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Tue, 22 Sep 2020 19:29:44 +0200 Subject: [PATCH] Fix responsetype --- projects/common/src/fm/services/item.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/common/src/fm/services/item.service.ts b/projects/common/src/fm/services/item.service.ts index da293b0..3871b03 100644 --- a/projects/common/src/fm/services/item.service.ts +++ b/projects/common/src/fm/services/item.service.ts @@ -58,7 +58,7 @@ export class ItemService { getItemData(code: string,limit?:number): Observable { var params = new HttpParams(); if(limit) params=params.append("limit", limit.toString()); - return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/${code}/data`,{ params: params }); + return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/${code}/data`,{ params: params,responseType: 'arraybuffer' }); } getItemByCodeAndType(code: string, itemType: string): Observable {