0
我想在浏览器中打开一个word文档。所以,当用户想要查看它时,我应该可以在浏览器中打开文档。有没有办法做到这一点?如何在浏览器中打开文档
本次代码:
response.addHeader("Content-Type", "application/msword; charset=utf-8")
response.addHeader("Content-disposition", "inline; filename="+"\"testdoucment.doc\"")
response.setContentLength(content.getBytes().length)
response.outputStream<<content.bytes
response.outputStream.flush()
response.flushBuffer()