I am trying to open a word document in browser. So, when user wants to view it, I should be able to open the document in browser itself. Is there a way to achieve this??
Present code:
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()