Marcelh1983 / angular-document-viewer

MIT License
62 stars 23 forks source link

base64 string value for url #85

Open anandadake opened 3 years ago

anandadake commented 3 years ago

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...

Marcelh1983 commented 3 years ago

@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.

ammad172 commented 1 year ago

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?

vicentefernandez123 commented 9 months ago

Any solution?

wider2 commented 6 months ago

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">