Live document
Explore the viewer
Use the viewer controls directly to navigate, select, search, print, or download the document.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Load from Base64 data
Read a document on the server, encode it as Base64, and pass it through DocumentData while supplying a friendly display name.
Document source
DocumentViewerSettings.DocumentData
How it works
The view reads the server-side document bytes, converts them to Base64, and assigns the result to DocumentData. The viewer receives the complete payload during initialization, so the original file does not need to be exposed through a public URL.
Source files
See the implementation
The view, browser behavior, assets, and controller are encapsulated in Demos/DocumentViewer/Loading/FromData.