Fixed error with pdf and binary data for reports
parent
9c6b7dd307
commit
3ed5b6637f
|
@ -497,11 +497,11 @@ const processControl = {
|
|||
href: undefined,
|
||||
download: undefined
|
||||
}
|
||||
if (runProcessResponse.isReport || processDefinition.isReport) {
|
||||
const blob = new Blob(
|
||||
[output.outputStream],
|
||||
{ type: output.mimeType }
|
||||
)
|
||||
if ((runProcessResponse.isReport || processDefinition.isReport) && output.outputStream) {
|
||||
const reportObject = Object.values(output.outputStream)
|
||||
const blob = new Blob([Uint8Array.from(reportObject)], {
|
||||
type: output.mimeType
|
||||
})
|
||||
link = document.createElement('a')
|
||||
link.href = window.URL.createObjectURL(blob)
|
||||
link.download = output.fileName
|
||||
|
|
Loading…
Reference in New Issue