How to open .odt file as template in web application?

ok, I finally figured it out solution for this problem.

this is the just the simple code to show file like .odt or .docx in wopi host

const fs = require(‘fs’)

const data = fs.readFileSync(‘filename.odt’, { flag: ‘r’ });

res.send(data)

1 Like