Hi
Thanks for your inquiry. I think that you can try save output document into the stream and send it into Response.
//Open a document
Document doc = new Document("in.doc");
//Create output stream
java.io.ByteArrayOutputStream htmlStream = new java.io.ByteArrayOutputStream();
//Save document into the stream in HTML format
doc.save(htmlStream, SaveFormat.HTML);
//Get string from stream
String html = htmlStream.toString("UTF-8");
//Now you can send HTML into your Response.
Hope this helps.
Best regards.
Alexey Noskov
Developer/Technical Support
Aspose Auckland Team