I didn't find this in the documentation of Angular and RxJS. Is there any way to fetch a MediaType (img, video ..) data from an HTTP response an process/download it ?
The problem is that whether with the get
or head
HTTP method with an image (png) or an XML media type from the backend, I keep having the following HTTP error :
415 Unsupported Media Type
Here is the code, Version 1:
return this.http.head(this.localBackURL + ressourcesPath.exportStatistiques, {search: params});
Version 2 :
return this.http.head(this.localBackURL + ressourcesPath.exportStatistiques, {search: params});
Thanks