aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes sending Mime response using HttpServletResponse stream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "sending Mime response using HttpServletResponse stream" Watch "sending Mime response using HttpServletResponse stream" New topic
Author

sending Mime response using HttpServletResponse stream

indresh mishra
Greenhorn

Joined: Dec 22, 2008
Posts: 2
I am having an application where a user viewing a page , clicks on a link and gets the mht of that html page ,

so when clicked the html of page is send to server , and in server side we do some processing and create a MultiPart Mime message and send it to client through HttpServlet Response.
and on client side page opens in a seperate webpage in IE.

so user clicks ones , he is getting the response but second time he clicks page gets closed , it is happening alternatively.

when user clicks he gets a dialog-box saying "save" or "open" , when click save ,everything works fine , but when click on open it is not working alternatively.
and address of IE gets changed to mhtml:http://<hostname>/reportserver/default.mht
indresh mishra
Greenhorn

Joined: Dec 22, 2008
Posts: 2
part of code is as follows:
goncalo silva
Greenhorn

Joined: Aug 01, 2012
Posts: 1
indresh mishra wrote:part of code is as follows:


Hi, i know its been a long time but i'm very interested in this approach of yours..

Did you have success with the generated mhtml file?
In my case the page in the mthml format goes "wild". Css is not well read and images are not being displayed. The encoding is the to UTF-8 just like yours.
Any clue? Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sending Mime response using HttpServletResponse stream