angular-document-viewer
angular-document-viewer copied to clipboard
base64 string value for url
Hi @Marcelh1983 , We have same requirement, docx blob is coming from the server.. but the blob is not supporting, this plugin is working with only public urls, we tried to convert docx blob to base64 url, but that is not working... any suggestionss..
thanks
Originally posted by @Sathishchary in https://github.com/Marcelh1983/angular-document-viewer/issues/49#issuecomment-642694971
Could you please add support of base64 string value for url as you mention above...
@anandadake what viewer do you use? The google and office viewers simply don't support base64 urls, so there is no way for me to add this support.
so this control is simply use for Urls only ? What if we need to show base64 data ? in this case it seems pretty useless. Isn't there anyway you can add support for base64?
Any solution?
yes, I support the last question. Imagine we have a blob data array. Can we use as data source instead of url ? I asked it because when we upload new file - it will not have any url, it is just a BLOB, but we need to preview it in the
<ngx-doc-viewer [url]="docUrl" viewer="office" style="width: 100%; height: 90vh">