cyntler / cyntler/react-doc-viewer

file display with array buffer

Open
#138 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
481
Forks
147
PR merge metrics
No merged PRs in 30d

Description

I get the file from the database like this
![image](https://github.com/cyntler/react-doc-viewer/assets/48010641/bf9bed5e-56ca-459b-b85d-9375adb8372b)
can i display it? I didn't find a solution in the documentation

I try like this but the file is not showing
```
({
uri: window.URL.createObjectURL(new Blob(item.fileBody.data)),
fileName: item.fileName,
fileData: item.fileBody.data,
}))}
pluginRenderers={DocViewerRenderers}
/>
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.