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