• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
PDF IE & filedownload
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PDF IE & filedownload


  • Subject: PDF IE & filedownload
  • From: Javier Solórzano <email@hidden>
  • Date: Fri, 2 Sep 2005 09:15:17 +0200

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: PDF IE & filedownload
      • From: David Holt <email@hidden>
    • Re: PDF IE & filedownload
      • From: Chuck Hill <email@hidden>
    • AW: PDF IE & filedownload
      • From: Helge Staedtler <email@hidden>
  • Prev by Date: Re: Overriding component in a framework ???
  • Next by Date: Re: Overriding component in a framework ???
  • Previous by thread: Re: Overriding component in a framework ???
  • Next by thread: AW: PDF IE & filedownload
  • Index(es):
    • Date
    • Thread