Tried it but still get the same results. If I open the url below in IE
it works ok, In Firefox it gives me garbage. 
 
http://My Midtier Server/arsys/shared/POInstructions.pdf <http://My
Midtier Server/arsys/shared/POInstructions.pdf> 

________________________________

From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Hugo Visser
Sent: Friday, November 02, 2007 10:15 AM
To: [email protected]
Subject: Re: Opening a PDF from the MidTier


** It's probably a mime-type issue. IE is doing some guess work based on
the extension of the file, that's why it might (or might not even) work
in IE. The only real fix is to configure the web server or in your case
the servlet container correctly. What you could try is to add the pdf
mime type to the Mid-Tier's web.xml. I haven't tested this, but to try
it you should ad this block of XML

    <mime-mapping>
        <extension>pdf</extension>
        <mime-type>application/pdf </mime-type>
    </mime-mapping>

To the already defined mime-types in the web.xml.

Hope this works for you :)

Hugo


On 11/2/07, Sokol, Brian <[EMAIL PROTECTED]> wrote: 

        ** 

        I have an application that contains a link to a PDF document. I
placed the PDF document in the MidTier\Shared directory. The link on my
Remedy form is:

        <a>href="http://MyWebServer/arsys/shared/POInstructions.pdf
">Click Here To Read Instructions</a> 

        When I click on the link from Internet Explorer it opens fine.
When I click on the link from Firefox 2.0 I get gibberish. If I use the
menu in Firefox and select File Open File I can open the PDF properly.
It will not work if I use the link. Anyone steer me in the right
direction? If I go to another web site with Firefox I can open any other
PDF. 

        ARS/Mid Tier 7.1 on Windows Server 2003 with IIS. 

        Brian Sokol 
        Manager, Desktop Services 
        Scholastic Inc. 
        557 Broadway 
        NY, NY 10012 
        (212) 343-6494 
        http://www.Scholastic.com <http://www.Scholastic.com>  

        __20060125_______________________This posting was submitted with
HTML in it___


__20060125_______________________This posting was submitted with HTML in
it___ 

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"

Reply via email to