Load documents in web-browser

i have a struts application with common-controls running on a tomcat-server and a postres-database. i also use hibernate to map my classes to the db.
now the problem, i don't know how to handle:
i save ms-word-files, pdf's and other files as blob in my database. my goal is to load the blob and show it on the client. it is not allowed to save the file temporary on the server.
saving into and receiving the blob from the database is working, but i don't know how to do the rest.
may you help me. thanks for answers.
andreas lettner

Hi,
If you have the actual documents in a String object it should be pretty straight forward, just set the content type of your output stream from your servlet/strut to whatever type you need. For a nice article, have a look at:
http://www.javaworld.com/javaworld/javatips/jw-javatip94.html
Erik

Similar Messages

  • Flex 2 SWF not loading on the web browser when Flash Player 8 is running

    I got a Flex 2 application that is not loading on the web
    browser when the users workstations got Macromedia Flash Player 8
    installed. Please advice on what could be the issue, i got security
    calls included i.e. securty.allowInsucureDomain, crossdomain.xml,
    etc.
    The application shows no issues on web browsers with Flash
    Player 9 installed.

    if you have read developersGuide it says that there somewhere
    http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part2_DevAp ps_048_1.html
    here is workaround
    http://kb.adobe.com/selfservice/viewContent.do?externalId=749eaa47&sliceId=1
    flex 9 is complete rewrite (almost) and its lot mor fast and
    effecient) you should't want to use flash 8 if you can anyways, but
    somethimes I guess there is not other way out..

  • Open word document in web browser

    i need to open the word document using activex web browser. just like windows 7 shows the preview panel.
    any body know this?
    Regards,
    Balaji DP

    Hi Rick,
    Did this issue occur with all the files?
    If yes, I recommend to verify the things below:
    Check if the Office Web Apps feature is activated on the site collection.
    Check if the Office Web Apps service applications and proxies have been created.
    Check if the Office Web Apps service applications and proxies are associated with the proxy group of the Web application that the site collection belongs to.
    Check if the service account permissions for the Web application and the Office Web Apps services are appropriate.
    More references:
    http://technet.microsoft.com/en-us/library/hh269604(v=office.14).aspx#bkmk_CannotViewInBrow
    http://social.technet.microsoft.com/wiki/contents/articles/21739.sharepoint-2010-word-web-app-cannot-open-this-document-for-viewing-because-of-an-unexpected-error.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Dynamic text not loading properly in web browser

    Please help - I have a dynamic text field in a movieclip
    inside a main movieclip - Loading works well within Flash and
    GoLive but once I load the file to the web browser the dynamic text
    no longer display - It loads undefined in the text box. However
    when I remove the movieclip from main movieclip text display no
    problem in browser.

    make sure to 'embed' the font, into the textField instance.
    select the instance on the Stage, look in the properties panel, and
    click the 'embed' button, skipping 'all' select the next four
    listings, and hit enter.

  • Getting out of memory exception while loading images in web browser control one by one in windows phone 8 silverlight application?

    Hi, 
    I am developing a windows phone 8 silver light application . 
    In my app I am displaying images in web browser control one by one , those images are the web links , the problem is after displaying 2 to 3 images I am getting out of memory exception .
    I searched for this exception how to over come , everybody are saying memory profiling ,..etc but really I dont know how to release the memory and how to clear the memory .
    In some sites they are adding this
    <FunctionalCapabilities>
    <FunctionalCapability Name="ID_FUNCCAP_EXTEND_MEM"/>
    </FunctionalCapabilities>
    by doing this am I free from out of memory exception?
    Any help ,
    Thanks...
    Suresh.M

    string HtmlString = "<!DOCTYPE html><html><head><meta name='viewport' content='width=device-width,initial-scale=1.0, user-scalable=yes' /></head>";
    HtmlString = HtmlString + "<body>";
    HtmlString = HtmlString + "<img src=" + source +" />";
    HtmlString = HtmlString + "</body></html>";
    innerpagebrowser.NavigateToString(HtmlString);
    that image source is the web link for example www.sss.com/files/xxx/123.jpg .
    Note this link is not real this is sample and image is of size 2071X3097
    Suresh.M

  • Display PDF document in web browser

    Hi,
    I have a smartform which is being triggered from Web UI. I got the data and converted it to PDF format.
    I need to display this PDF data in a web browser Pop up.
    Please let me know how can I do that.
    Thanks
    Abhishek

    Abhishek,
    If you are using the business transaction types, you can setup a default "print" action which then when you click on the "print preview" in the webUI you will get an PDF output view of the print output.
    If that doesn't work, then look at the business partner factsheet code delivered by SAP which will show how to display a PDF.
    Look at component/view BP_HEAD/BPHEADOverview
    Class CL_BP_HEAD_BPHEADOVERVIEW_IMPL
    method IF_BSP_WD_TOOLBARR_CALLBACK~GET_BUTTONS
    and this section of code
          IF lr_partner IS BOUND AND lv_enabled = abap_true.
            lr_partner->get_property_as_value( EXPORTING iv_attr_name = 'BP_GUID'"#EC NOTEXT
                                               IMPORTING ev_result    = lv_partner_guid ).
            IF lv_partner_guid IS NOT INITIAL.
    *       ICF handler class prepares java script
              CALL METHOD cl_crm_afs_print=>get_url
                EXPORTING
                  iv_object   = lv_object
                  iv_key      = lv_partner_guid
                  iv_role     = lv_business_role
                  iv_language = sy-langu
                  iv_form     = ' '     "read from customizing
                  iv_format   = lv_format
                IMPORTING
                  ev_url      = lv_url.
              IF lv_url IS INITIAL.
                lv_enabled = abap_false.
              ELSE.
                lr_cuco_head ?= get_custom_controller( 'BP_HEAD/Lifecycle' )."#EC NOTEXT
                IF lr_cuco_head IS BOUND.
    *              CONCATENATE '"' lv_url '"' INTO lr_cuco_head->gv_preview_url.
                  lr_cuco_head->gv_preview_url = lv_url.
                ENDIF.
              ENDIF.
            ENDIF.
            ls_button-text  = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BP/BP_PDF' )."#EC NOTEXT
            ls_button-tooltip  = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BP/BP_FS_PREVIEW' )."#EC NOTEXT
    *        ls_button-on_click = 'PREVIEW'.
            ls_button-on_client_click = 'OpenPopUp()'.          "#EC NOTEXT
            ls_button-page_id  = me->component_id.
            ls_button-enabled = lv_enabled.
            ls_button-icon_src = '/sap/bc/bsp/sap/crm_ppm/w_pdf__s.gif' ."#EC NOTEXT
            APPEND ls_button TO rt_buttons.
            CLEAR ls_button.
          ENDIF.
        ENDIF.
      ENDIF.
    Good luck,
    Stephen

  • HELP! Images will not load in my web browser

    Any idea on how to trouble shoot why my phone will not load images? I even brought it to a T-Mobile rep and they didn't know what was wrong. Any ideas on how to correct this?? PLEASE

    ok, cool... so what else have you done, so we don't go back all over all that you have previously been advised?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Controlling where flash movie loads on a web  browser

    I want to have the index page for my site open with a flash
    movie on top of the rest of the content of the page at a set pixel
    distance from the top of the page and centered horizontally in
    relation to the browser. I have been able to make this work with an
    absolute location using CSS elements in Dreamweaver and the
    equivalent of what used to be layers. It all works as long as the
    position of the layer is absolute, and your monitor settings are
    pretty standard. Otherwise the flash plays on the left:
    http://www.iconoclastic.net/metaphordogs/index.html
    When I try to make it a relative location, it moves to the
    top of the browser. When I try to make it relative to a table, it
    displaces the table content rather than playing over it.
    Any assistance would be appreciated
    Alec

    1. System Preferences >  Flash Player > Advanced >  Delete  All
         Press the "Delete All" button.
         Install Adobe Flash Player.
        http://get.adobe.com/flashplayer/
       Download it first.
       The next step is important.
       Click Safari in the menubar and select “Quit Safari”.
        Follow the prompts and install it.
        Restart computer. Relaunch Safari.
    2.  Allow  Plug-ins
        Safari > Preferences > Security
        Internet Plug-ins >  "Allow  plug-ins"
        Enable it.
    3. Safari > Preferences > Privacy
        Press the button “ Remove All Website Data”.

  • Portal will not load in web browser

    Hello,
    I have a clustered portal and the second portal (<b>Ep6 SP2 Patch 29</b>) server in the cluster will not load in a web browser.  The portal appears to start correctly and joins the cluster with the other server but when you try to access it in the browser it does not load.  The browser just sits there. 
    I found that if I stop the dispatcher on the second server the portal login page does load minus the images.
    Any ideas on what my problem could be?
    Thanks,
    Keith

    Keith,
    Make sure the Cluster configuration is right. When did you start seeing this problem?
    Host A: Dispatcher->server 0, server 2
    Host B: Dispatcher->server 0, server 2
    i.e The instance IDs are mapped right.
    Also try to hit the individual servers in the cluster the following way.
    http://hostname1:50000/irj/portal;sapj2ee_irj=instance_id sends a request to server 0.
    http://hostname2:51000/irj/portal;sapj2ee_irj=instance_id sends a request to server 1.
    This may give more clues. Unfortunately I don't have access to EP6 SP2 to lookup and tell you the right parameters to look for.
    Regards
    -Venkat Malempati
    Message was edited by: Venkat Malempati

  • Programatically pushing toolbar button in web browser

    Hi all, I've got a tool going via a c++ plugin. Pushing the tool button and using it works well in Acrobat, including inside an internet explorer browser window acrobat plugin.
    What i'm trying to do now is activate the tool programatically by sending a command over DDE from another application. The call i'm using is: AVAppSetActiveTool , which is the call that gets used when you push the button manually.
    This works when running in a standalone Acrobat, but the AVAppSetActiveTool seems to have no effect when the document is loaded in a web browser.
    I'm wondering what to do to get this working?? i've tried making the browser AVWindow a 'key' window as well as bringing it to the front with no avail.
    Is there some magic I need to do before I call AVAppSetActiveTool programatically that will allow it to work inside the web browser plugin.
    many thanks,
    zoltan

    interesting situation.
    As far as I know, there is no way to force a specific tool to be active when running in an external window (such as the browser).
    Leonard

  • Adobe Acrobat/Reader can not be used to view PDF's in Web browser.

    Does any one came accross the following message trying to view PDF's in web browser? "Adobe Acrobat/Reader that is running can not be used to view PDF documents in Web browser. Please exit the Acrobat?Reader application and try again". Thanks for your help! Barbara

    http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html

  • Need to remove adobe pdf toolbar in web browser

    I am developing a web application to view pdf file in Web browser like IE,Chrome,Mozilla,Safari.
    while viewing pdf in browser I need to hide/remove the adobe toolbars in both read mode and normal mode.
    I have used the below coding. But still it showing the pdf toolbar in the browser. Is there any otherway to disable Save and Print options from the toolbar?
    <div id="pdf">
      <object width="100%" height="100%" type="application/pdf" data="http://localhost/pdftest/toolbar.pdf#toolbar=0&navpanes=0" id="pdf_content">
      </object>
    </div>
    Kindly do the needful....

    Hi Test Screen Name,
    I have requriment that end user are not allow to print and save the pdf document within web browser. I have a save button and print button within my pdf document. End user are not allowed to print and save the pdf document using adobe toolbars.
    If the end user needs to save or print document the only way they are need to use the button provided within the pdf document. I need to restrict to print and save from the adobe toolbar icons.
    Thanks

  • Edge Code will not load in web browser

    My OEM edge code will not load in web browser after it has been uploaded to the server. I am using dreamweaver & the OEM file.
    The images are all grouped & labeled properly (within Edge Animate). Note the website will not load with ANY web browsers UNLESS you hit the refresh button or reload the web address.
    www.anndominion.com
    Can somone please tell me what is going on or how to fix the problem? ;(
    Here is the code for the website too.
    Any help would be great!
    <!doctype html>
    <html>
    <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
    <title>Welcome</title>
    <!--Adobe Edge Runtime-->
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <script>
      var custHtmlRoot="edgeanimate_assets/Home/Assets/";
      var script = document.createElement('script');
      script.type= "text/javascript";
    script.src = custHtmlRoot+"edge_includes/edge.5.0.1.min.js";
      var head = document.getElementsByTagName('head')[0], done=false;
      script.onload = script.onreadystatechange = function(){
      if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) {
      done=true;
      var opts ={
        scaleToFit: "width",
        centerStage: "none",
        minW: "0",
        maxW: "undefined",
        width: "1500px",
        height: "800px"
      opts.htmlRoot =custHtmlRoot;
      AdobeEdge.loadComposition('Home', 'EDGE-292846011', opts,
      {"style":{"${symbolSelector}":{"isStage":"true","rect":["undefined","undefined","1500px", "800px"],"fill":["rgba(255,255,255,1)"]}},"dom":[{"rect":["716px","356","88px","88px","aut o","auto"],"id":"preloader5","fill":["rgba(0,0,0,0)","images/preloader5.gif","0px","0px"], "type":"image","tag":"img"},{"rect":["645px","480px","229px","79px","auto","auto"],"font": ["Arial, Helvetica, sans-serif",[24,""],"rgba(0,0,0,1)","normal","none","","break-word","normal"],"id":"Text" ,"text":"Please Tap Refresh <br>To Load Content.","align":"center","type":"text"},{"rect":["555px","283px","361px","103px","auto" ,"auto"],"font":["Arial, Helvetica, sans-serif",[24,"px"],"rgba(0,0,0,1)","400","none solid rgb(0, 0, 0)","normal","break-word","normal"],"id":"Text2","text":"","align":"center","type":"text" }]}, {"dom":{}});
      script.onload = script.onreadystatechange = null;
      head.removeChild(script);
      head.appendChild(script);
      </script>
    <style>
            .edgeLoad-EDGE-292846011 { visibility:hidden; }
        </style>
    <!--Adobe Edge Runtime End-->
    </head>
      <body>
        <div id="Stage" class="EDGE-292846011"></div>
        </body>
    </html>

    Keith,
    Make sure the Cluster configuration is right. When did you start seeing this problem?
    Host A: Dispatcher->server 0, server 2
    Host B: Dispatcher->server 0, server 2
    i.e The instance IDs are mapped right.
    Also try to hit the individual servers in the cluster the following way.
    http://hostname1:50000/irj/portal;sapj2ee_irj=instance_id sends a request to server 0.
    http://hostname2:51000/irj/portal;sapj2ee_irj=instance_id sends a request to server 1.
    This may give more clues. Unfortunately I don't have access to EP6 SP2 to lookup and tell you the right parameters to look for.
    Regards
    -Venkat Malempati
    Message was edited by: Venkat Malempati

  • Can I view documents in a web browser?

    I was under the assumption I would be able to send my documents to iCloud and then edit them within a web browser. Is this not the case?
    When I go to iCloud.com all I see is an option to install iWork on IOS devices.

    Your assumption was wrong.  You can not edit them online.

  • I tried down loading mozilla firefox to use as a web browser. It was downloaded 100% then when prompted to "run" the error message comes up with a red cross and the message'This file is corrupted" and won't let me proceed. What do I do now?

    I tried down loading mozilla firefox to use as a web browser. It was downloaded 100% then when prompted to "run" An error message comes up with a red cross and the message'This file is corrupted" and won't let me proceed. What do I do now?

    It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox.<br />
    You can try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    See http://kb.mozillazine.org/Unable_to_save_or_download_files

Maybe you are looking for