Re: PDF IE & filedownload
Re: PDF IE & filedownload
- Subject: Re: PDF IE & filedownload
- From: Chuck Hill <email@hidden>
- Date: Fri, 2 Sep 2005 08:50:09 -0700
Have you tried this on more than one PC? It might be that this PC is
missing the content-type -> PDF connection in the registry or that
the PDF plugin is corrupt, or IE is otherwise messed up. Not that
this would ever happen on a Windows machine... :-P
Chuck
On Sep 2, 2005, at 12:15 AM, Javier Solórzano wrote:
I'm using the folowing Filedownloader.java component to display
inline pdf of a frame. It runs great with Safari and Firefox (both
PC & Mac) with Quicktime, Adobe Reader or the Shuberit plugin to
display inline pdf but it displays garbage when I use IE and Adobe
on a PC. I would swear it worked once (we seldom use IE, but
clients insists on using it...) but now I only get garbage.
public class FileDownloader extends WOComponent {
public FileDownloader(WOContext context) {
super(context);
}
public void appendToResponse(WOResponse response, WOContext
context) {
if( session() != null) {
if(((Session)session()).documentImage != null) {
if(((Session)session()).documentImage.imageData() !
=null && ((Session)session()).documentImage.mimeType() !=null) {
response.setContent(((Session)session
()).documentImage.imageData());
response.setHeader(((Session)session
()).documentImage.mimeType(), "content-type");
response.setHeader("inline","content-
disposition");
response.setHeader
("filename=","documentserver.pdf");
return;
}
}
}
super.appendToResponse(response,context);
}
}
Any pointers would be appreciated, since I've been staying up late
night the past few days with no joy. The easy answer would be f***
IE, but alas, I'm stuck with it...
Cheers,
JS
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden