const config: HttpClientConfig = {
responseType: 'arraybuffer',
transformResponse(data: any, headers?: any) {
const objectUrl = new Blob([data], { type:"application/pdf; charset-UTF-8" })
const blobUrl = URL.createObjectURL(objectUrl)
setTimeout(() => {
URL.revokeObjectURL(blobUrl)
}, 2000)
return blobUrl
},
}