Utilizing Angular 10 along with the ngx-doc-viewer library: https://www.npmjs.com/package/ngx-doc-viewer.
Encountering the following error: "400. That’s an error.The server cannot process the request because it is malformed. It should not be retried. That’s all we know."
HMTL:
<ngx-doc-viewer [url]="url?.href"[viewer]="google"> </ngx-doc-viewer>
In my component I have:
this.url.href = (window.URL ? URL : webkitURL).createObjectURL(file);
File is a blob that I converted from base64.
This is the url I am encountering the error with:
https://docs.google.com/gview?url=blob%3Ahttp%3A%2F%2Fcompanyurl%2F7d5d56ac-4b09-4ba7-ab7c-8246d5c96aa1&embedded=true
Can Google Doc Viewer / ngx-doc-viewer handle blob URLs?