angular-document-viewer icon indicating copy to clipboard operation
angular-document-viewer copied to clipboard

base64 string value for url

Open anandadake opened this issue 3 years ago • 4 comments

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 avatar Aug 11 '21 11:08 anandadake

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

Marcelh1983 avatar Aug 12 '21 10:08 Marcelh1983

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?

ammad172 avatar Nov 11 '22 08:11 ammad172

Any solution?

vicentefernandez123 avatar Dec 07 '23 18:12 vicentefernandez123

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

wider2 avatar Mar 06 '24 09:03 wider2