Alcumus/react-doc-viewer

Is there support for Base 64 files?

Closed this issue · 5 comments

Is there support for Base 64 files?

@kingeke passing a data uri works...

<DocViewer
    documents={[{uri: 'data:application/pdf;base64,JVBERi0xLjQ ... UlRU9GCg=='}]}
    pluginRenderers={DocViewerRenderers}`
/>

Its supports only Pdf, what application type should pass for docx and excel and PPT

Its supports only Pdf, what application type should pass for docx and excel and PPT

Current Renderable File Types

Hi Alcumus,

I tried to use the defined current renderable fie types but its shows like this.
image