This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hey everyone, Angular and node's aren't my strong suits and I've had the misfortune of inheriting an angular 13 project where I'm tasked with implementing a minor JasperReport integration.
To put it brief, 3 different fields from the form are grouped into params that get sent to the backend NODEJS server, which sends it to JasperReports Rest_v2 API which then generates a report with them, however the trouble I'm having is taking return data BLOB and converting it to a PDF file that appears as a file download browser side.
My NODEJS method:
This does return the BLOB that is the raw PDF file data e.g:
However the problem I'm having now is taking said data and making it to a downloadable PDF file in angular side. Ive got these methods that I've hacked together from various google searches but none of them can produce a working PDF file.
There is an one of the methods I've attempted in my .ts file:
the console logger prints the raw BLOB to just confirm, but then with various methods I've tried I get type conversion errors or just blank PDF files, I can never receive the actual report.
Subreddit
Post Details
- Posted
- 2 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Angular2/co...