Difference when viewing PDF render with /workspace-server/ and /DocumentManager/

Hi all,
There are 2 scenarios when viewing file in attachment:
1) When user is processing the form, they view the attachment in attachment tab. The url's format is: https://mydomain/workspace-server/documents/-6195445997301787088-16.pdf
2) My client's requirement is to view files in attachment tab even after the process is complete.
What i have done is to write a custom java component, retrieve attachment of the last task and return to user.
The url has format: https://mydomain/DocumentManager/docm1266831910962/53650adc3948bd502cf8c81d4885feec?type=Y XBwbGljYXRpb24vb2N0ZXQtc3RyZWFt
(I also found that the file is generated under GDS folder)
In both of the cases, navigateToURL() function is used to view the pdf in new window.
My trouble starts from here. In several client's machine, case 2 always ask them to save the form instead of viewing in the browser, while case 1 always can be viewable.
Below is the image of case 2 when i click in the link:
The strange thing is in local environment, both cases are working ...
Is there any idea why it happen?
My client is using windows xp, IE 6 and adobe reader 9. Some of them are using windows vista, IE 7 and adobe reader 9.
In local environment, we have tested successfully with
1)
Window XP
IE6/IE7/FireFox/Google Chrome
Adobe reader 9
2)
Window vista
IE7
Adobe reader 9
Regards,
Anh

You are confusing me
But first, the setContentTypeFromBasename() is an ES2 addition to the Document class.  Didn't realize this was a pre-ES2 case. Sorry about that.
Next, you say you are removing the ?type=ASDFASDFASDF from the url on the client. This must be there so the DocumentManager servlet can set the proper content-type in the http response.  I looked at the code and if it isn't there, no content type is set so it will be browser and os dependent on what it will do,although i would expect most to prompt.
And however your custom component and the short lived process work, that document output variable needs to have the proper content-type set in it (the Document has a setContentType() method in 8.2 but you will have to do the mapping from file extension to mime-type yourself in 8.2).  If it does and you don't remove the type parm from the url, then things will work.  But if that type parm isn't there or the content-type isn't set in the document output var, the browser will not know which application/plugin to launch and will prompt.
Jon

Similar Messages

  • Unable to view PDF output from Report Server

    Help!
    I have successfully setup CGI Report Server and can generate and view reports in IE5 as HTML repformat.
    However when I try to generate output as PDF I do not get the report displayed. Instead I get a little acrobat icon displayed in the top left of the browser window.
    When I click on the icon I get a IE5 message:
    "There is no viewer available for the type of object you are trying to open....
    Content Type: application/pdf"
    ...and then insists on taking me to Microsoft activex plugin page.
    This is very stange as I DO have Adobe Acrobat Reader 4 installed and the plugin works ok when viewing PDF files on Oracle webpage.
    Any suggestions on how to resolve are gratefully received!!
    Regards,
    Richard.

    You have run into an interesting problem. The problem is not with Reports. The problem is with Adobe. You can search Adobe's web site and they point to Microsoft (btw, this problem doesn't occur with netscape as the browser) Microsoft's web site point to Adobe.
    The Problem is that the .ocx Adobe puts out for use with IE times out if the report take stoo long to start sending back data. We had report that worked and some that didn't. We took a report that worked and put a sleep command in it and when the sleep command got to 10 the report quit working.
    My suggestion: move to netscape, make your reports as fast as absolutely possible.
    Jeff
    null

  • Outlook2013 email message goes behind main Outlook window when opening PDF attachment with Reader 11

    Problem statement: Outlook 2013 email message goes behind main Outlook window when opening PDF attachment with Adobe Reader 11.0.3
    Environment: Windows 8 x64; Office 2013; Adobe Reader 11.0.3
    Steps to reproduce bug:
    1. Open Outlook 2013
    2. Open email message with PDF attachment
    3. Open PDF attachment (with Adobe Reader as default PDF viewer)
    4. Close Adobe Reader
    Results: Original email message with PDF attacment now sits behind the main Outlook window
    Expected results: Original email message should be on top of main Outlook window as it was when opening the PDF attachment
    Note: Adobe Acrobat Profession performs as expected - the original email is on top of the main Outlook window - This only seems to be a problem with Adobe Reader.
    Has anyone else experience this problem?  If so, have you found a work-around?
    Thanks,
    Mike

    From: new window opens behind existing window - how to modify?
    I had this problem happening in Outlook.
    If I tried to open an email, it would open behind the main Outlook window.
    The same happened if I opened a link in the email - it would open behind the mail.
    The fix that was suggested to me was so simple that I still don't believe it.
    Right click on the task bar and unlock the taskbar, then lock it again.
    Close down Outlook and re-start it.
    Problem solved! Just dont know how  or why.
    Proposed as answer byalfreelandTuesday, January 08, 2013 4:52 PM
    It worked for me with Win 7 and OL 2003. Why? Who cares ... It is working.
    Liviu 2014-09-17

  • Colors not displaying when viewing PDF files

    Recently I've discovered that when viewing PDF files I'm not seeing all of the colors in the charts. This is happening with PDF files that I made as recently as last year (when everything looked fine). It's also happening with files that other people at other organizations have made. If I go to a coworkers computer and pull up the files, I can see everything just fine. Also, when I print the files, everything comes out just fine. Any ideas as to why I'm not seeing things correctly on my machine? I'm using a Dell laptop, Windows 7, Adobe Acrobat Pro XI, Microsoft Word 2010. I've also been having problems with graphics disappearing when converting Word files to PDF files but that's a topic I'll post on the Acrobat page. Seems like it may all be related to my new laptop. Thanks.
    Attaching an image of what I see when I view the PDF file and a screen shot of the Word file with the color in which does print even though I can't see it. I can see some of the colors in the PDF file but not all of them.

    Hi,
    The problem with ie9 or ie8 gets more complicated, since the alt key works on some files, one example is:
    http://www.instrulog.dk/download/manualer/humanware/focus-14-manual
    The files where it does not work are placed on sites that require sign in with a digital signature, so it is impossible to give urls to  the files.
    With screen readers and with pdf files in the browser, the normal way of getting to the
    address bar does not work, but that is not really a problem but a minor irritation, and not a new behavior.
    Claus

  • Safari & Firefox behaving badly when viewing pdf files

    Since upgrading my Mac to Lion, Safari and Firefox have not displayed pdf files for viewing.
    SAFARI:  When I click a pdf link in Safari, a dark grey blank page appears. When I try to save the pdf file to my desktop, an error message says the file is not properly formatted.
    FIREFOX: When I click a pdf link in Firefox, a white blank page appears. I can successfully save the file to my desktop, and in turn open the file using Acrobat.
    CHROME: Everything works normally...no problems found when viewing pdf files.
    I tried dumping the plist file for both Safari and Firefox, and resetting both browsers clearing them of cache, etc., but none of that worked.
    Has anyone else seen similar behavior? Anyone have a solution?
    I have posted this problem twice in Apple's Safari Forum, but have had no response in almost two months.
    Thanks

    In Safari you to have the Acrobat PDFviewer plugin installed, or the The PDFBrowser plugin by Schubert of Germany Installed.
    If you use the PDFBrowser Plugin you need the 2.4.2 version in order to work with the version 5.1 of Safari and 2.2.3 version for Safari 5.05 and lower.
    In FireFox  version 3.6.X and lower you need version of the PDFBrowser Plugin version 2.2.3 which also works with Safari 5.05 and lower. And version 2.4.2 for Safari 5.1 and above and FF 4.0 and above, and Seamonkey version 2.3 and above.
    THE ADOBE PDFVIEWER PLUGIN has only worked with OSX for Safari. Adobe quit supporting any other browsers on the Macintosh with the roll out of OSX years ago except for Safari. And despite repeated request by many users, its gone on deaf ears.
    As a result This Schubert fellow from Germany has had to fill the void. It works on "any" browser on the Market for Mac. And works for any browser for Windows except Internet Explorer.
    The only thing it doesn't do is online forms which the Acrobat Plugin will. But since it only works with Safari its Useless. I'm not going to Crank up Safari just to fill in Forms.
    Oh, you use to be able to install both plugins and would work fine. Now if both are installed neither works. Its either use the one that works on one Web Browser and allows form filling.
    Or use the one that works on everything, but can't do forms. Oh Schubert on his Web site explains his is forbidden from installing support for forms.

  • I am having trouble viewing PDF's with Adobe Reader XI

    I  am having trouble viewing PDF's with Adobe Reader XI

    I am using Windows 7 home edition and using Internet Explorer 10
    The PDF's are online on websites that I am trying to open.  Both on the site as well as trying in a new window.
    Thank you
    Jeff

  • Viewing PDF files with blackberry pearl 8100

    Is it possible to view PDF files with blackberry pearl 8100? If so, how?

    your not able to open them? if you try to open them what happens?
    If someone helped you give them kudos. Research all info!

  • When viewing my webmail with firefox there is nothing in the inbox, but all other folders are fine

    problem is when viewing my webmail with Firefox there is nothing in the inbox, but all other folders are fine.

    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Transaction control with DI Server and B1WS

    Hi everyone,
    recentily I started working with DI server and B1WS, and talking with friends and with a brief research in the foruns Its seens to be impossible to have a Rollback in database transactions performed with DI server and B1WS.
    Its really true? I mean, I receive the Session ID when I use the login service, it shouldn't be so difficult to have a rollback function with this info...

    Really? Anyone knows?

  • Dynamic VLAN Assignment with RADIUS Server and Aironet Access Points

    Hi Guys,
    I would like to go for "Dynamic VLAN Assignment with RADIUS Server and Aironet Access Points 1300". I want the AP to broadcast only 1 SSID. The client find the SSID ->put in his user credential->Raudius athentication->assign him to an specific vlan based on his groupship.
    The problem here is that I don't have a AP controller but only configurable Aironet Access Points 1300. I can connect to the radius server, but I am not sure how to confirgure the AP's port, radio port, vlan and SSID.
    http://www.cisco.com/en/US/tech/tk722/tk809/technologies_configuration_example09186a008076317c.shtml#switch
    I go through some references:
    3.5  RADIUS-Based VLAN Access Control
    As discussed earlier, each SSID is mapped to a default VLAN-ID on the wired side. The IT administrator may wish to impose back end (such as RADIUS)-based VLAN access control using 802.1X or MAC address authentication mechanisms. For example, if the WLAN is set up such that all VLANs use 802.1X and similar encryption mechanisms for WLAN user access, then a user can "hop" from one VLAN to another by simply changing the SSID and successfully authenticating to the access point (using 802.1X). This may not be preferred if the WLAN user is confined to a particular VLAN.
    There are two different ways to implement RADIUS-based VLAN access control features:
    1. RADIUS-based SSID access control: Upon successful 802.1X or MAC address authentication, the RADIUS server passes back the allowed SSID list for the WLAN user to the access point or bridge. If the user used an SSID on the allowed SSID list, then the user is allowed to associate to the WLAN. Otherwise, the user is disassociated from the access point or bridge.
    2. RADIUS-based VLAN assignment: Upon successful 802.1X or MAC address authentication, the RADIUS server assigns the user to a predetermined VLAN-ID on the wired side. The SSID used for WLAN access doesn't matter because the user is always assigned to this predetermined VLAN-ID.
    extract from: Wireless Virtual LAN Deployment Guide
    http://www.cisco.com/en/US/products/hw/wireless/ps430/prod_technical_reference09186a00801444a1.html
    ==============================================================
    Dynamic VLAN Assignment with RADIUS Server and Wireless LAN Controller Configuration Example
    http://www.cisco.com/en/US/tech/tk722/tk809/technologies_configuration_example09186a008076317c.shtml#switch
    ==============================================================
    Controller: Wireless Domain Services Configuration
    http://www.cisco.com/en/US/products/hw/wireless/ps4570/products_configuration_example09186a00801c951f.shtml
    Any help on this issue is appreicated.
    Thanks.

    I'm not sure if the Autonomous APs have the option for AAA Override.  On the WLC, I can go into the BSSID, Security, Advanced, and there's a checkbox that I would check to allow a Radius server to send back the VLAN.
    I did a little research and it looks like the 1300 may give this option but instead is defined as "VLAN Override".  I've found the release notes for 12.3(7)JA5 (not sure what version you're running) that give mention and a link to configuring EAP on page 4: http://www.ciscosystems.ch/en/US/docs/wireless/access_point/1300/release/notes/o37ja5rn.pdf
    Hope this helps

  • Problems with games server and client

    Hi! I am making an MMORPG game and I have problems with the server and client connection.
    I can connect to the server, but when a second player does, the server console tells me this:
    java.net.SocketException: Connection reset
    After that, all clients disconnect.
    Which is the problem?
    How can I solve it?
    Thank you so much

    Here is how my sever work. I took some of this code from a book called Killer Programming Games in Java. If you google for it, you will find it for sure.
    TourGroup tg = new TourGroup(); // this object stores information about all clients connected to the server
        try {
          ServerSocket serverSock = new ServerSocket(PORT);
          Socket clientSock;
          while (true) {
            System.out.println("Waiting for a client...");
            clientSock = serverSock.accept();
            new TourServerHandler(clientSock, tg).start(); // this is the thread that monitors each client
        catch(Exception e)
        {  System.out.println(e);  }
      } This is some code of TourServerHandler
    public TourServerHandler(Socket s, TourGroup tg)
        this.tg = tg;
        clientSock = s;
        name= "?";
        cliAddr = clientSock.getInetAddress().getHostAddress();
        port = clientSock.getPort();
        System.out.println("Client connection from (" +
                     cliAddr + ", " + port + ")");
    public void run()
      // process messages from the client
        try {
          // Get I/O streams from the socket
          BufferedReader in  = new BufferedReader(
       new InputStreamReader( clientSock.getInputStream() ) );
          PrintWriter out =
    new PrintWriter( clientSock.getOutputStream(), true );  
    // and here goes the rest... The TourServerHandler thread uses this code to send messages:
    tg.broadcast(msg); tg.broadcast works like this:
    synchronized public void broadcast(String cliAddr, int port, String msg)
      // broadcast to everyone but original msg sender
        TouristInfo c; // this object stores info about the client
        for(int i=0; i < tourPeople.size(); i++) {
          c = (TouristInfo) tourPeople.get(i);
            c.sendMessage(msg);
      } This is the error part
    public void sendMessage(String msg)
      PrintWriter out;  
        out.println(msg);  
          System.out.println("OK");
      } I can't find any error but I still get that Connection reset exception...

  • TS2771 on i pod touch the orientation does not change when I turn it on it's side when using safari etc.  When viewing youtube it only displays widescreen and will not display portrait , anyone any ideas? is this a fault or do all ipod touch do this?

    On i pod touch the orientation does not change when I turn it on it's side when using safari etc.  When viewing youtube it only displays widescreen and will not display portrait , anyone any ideas? is this a fault or do all ipod touch do this?

    The user guide says:
    Movies viewed in Videos and YouTube appear only in landscape orientation. Street views in Maps
    also appear only in landscape orientation.
    Do you have the scree orientation lock turned on? If on there is a circular arrow icon with a padlock inside next to the battery charge icon in the upper right.

  • Looking to create editable PDF forms with drop downs and text boxes for use on a Mac computer and iPad. Which product do I need to purchase? Do not need anything fancy

    Looking to create editable PDF forms with drop downs and text boxes for use on a Mac computer and iPad. Which product do I need to purchase? Do not need anything fancy

    Basically you would need Acrobat. However, it is now also possible to create basic form fields using just the free Reader. In fact, I've been working on a tool that allows you to do it, so if you're interested in it please contact me privately.

  • I am continually getting error -69 when syncing iPad Air with latest iOS and iTunes versions. Any suggestions?

    I am continually getting error -69 when syncing iPad Air with latest iOS and iTunes versions. Any suggestions?

    Try Googling "sync without iTunes".
    There are free alternatives and there are not so free alternatives.
    Btw, to check if AVG is causing the problem, you should uninstall AVG and not just "turn it off".
    Also, can you describe how you go about uninstalling a program? For example, how did you "delete" iTunes?

  • Why my MacBook pro with Maverick, when I'm connected with internet key and connect with usb cable my HTC One the Mac restat with error?

    Why my MacBook pro with Maverick, when I'm connected with internet key and connect with usb cable my HTC One the Mac restat with error?

    Solution may be found if you search in the "More Like This" section over in the right column. 

Maybe you are looking for