How to open PDF stored as blob

Hi,
How can i open PDF that is stored in the database as BLOB from Forms 10g. Any method to directly open the PDF instead of generating physical PDF file in AS and open in client by webutil.showdocument.
Thanks in advance

Hi,
The second option is not working here.
I have another solution
WEB.SHOW_DOCUMENT('http://abc.com/efg.pdf'); this open the pdf file in the browser without displaying
a blinking command prompt (as like in the option 1).
But in all the cases we are opening the physical file, I am looking to open directly from the BLOB column.
If I should first generate the physical file from the BLOB column, then plz help me to get the code
Thanks to both of you.

Similar Messages

  • Problem displaying PDF stored in BLOB column

    Hello everyone.
    I've been trying to follow this tutorial http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::p11_question_id:232814159006 on displaying PDFs stored in BLOB columns. This is being performed on Apex 4.2, with my DB running 11g. I've got my procedure, which I'll post below:
    create or replace procedure "PDF" (p_id IN gvo_documents.doc_id%type)
    is
        l_lob    blob;
        l_amt    number default 30;
        l_off   number default 1;
        l_raw   raw(4096);
    begin
        select contents into l_lob
            from gvo_documents
             where doc_id = p_id;
    -- make sure to change this for your type!
        owa_util.mime_header( 'application/pdf' );
        begin
            loop
              dbms_lob.read( l_lob, l_amt, l_off, l_raw );
              htp.prn( utl_raw.cast_to_varchar2( l_raw ) );
              l_off := l_off+l_amt;
              l_amt := 4096;           
        end loop;
            exception
               when no_data_found then
                  NULL;
            end;
    end;
    I am trying to run this through a PL/SQL dynamic region and while I don't receive any error's, the content displayed is a huge mess of garbled text and odd characters. I've tried to run this procedure on numerous other document types, including word files and jpeg images, all with the necessary changes in my procedure, and regardless of what I use, I still get a large mess of strange characters. Does anyone have any information or ideas about why this is happening?

    If I understand correctly, your requirements needs to be broken down into two problems:
    1) click link that pops up a window displaying a new APEX page
    2) an APEX page the displays the document, not downloads it.
    I haven't done #1 (yet).
    However, you may be able to generate a URL that points to the new page as part of the SELECT statement for the Report.
    This has a related question, but no answer yet:
    open pdf in popup browser window
    The key is target="_blank" for the anchor tag.
    To generate the URL, you should use the APEX_UTIL.prepare_URL() function.
    If that doesn't work, a Dynamic Action that does some magical JavaScript stuff may be needed.
    For #2, I lost the URL that showed how to display a PDF as part of a "form" page.
    From what I remember:
    Start with a blank page with one blank HTML region (all the Items go in the HTML region)
    Add an Item for the PK/Doc_ID
    part I forgot Create a Data Manipulation Process
    - Automated Row Fetch
    - On Load - After Header
    - (stuff for your table/view)
    part I forgot Create an (I believe) "File Browser" item type. For Settings:
    - Storage Type "BLOB column specified in Item Source" (and place the column name of the BLOB there)
    - MIME Type Column: (column name) -- since you have multiple types, this is a MUST HAVE
    - Filename Column: (column name) -- I highly recommend you have this.
    - Content Disposition == INLINE <-- this is the kicker
    Also, you will need a Browser Plugin for each of the MIME Types (otherwise, the browser may try to 'download' the file)
    Browsers can handle Image types internally. Adobe's plugin can handle PDFs. I don't know about Word/Excel.
    Again, I don't remember the exact details, but that should cover most of it.
    MK

  • How To Open PDF Attached file use CLIENT_HOST 11 g forms

    How to open pdf file on client side at 11 g forms ?
    when i open any attached (PDF )file on client side is not open those file open on server side plz guide me how to  open those file on client machine using client host?
    thanks

    Where is the pdf you are trying to open? Is it on the server or the client? If the file is stored on the server then you can access it using WEB.SHOW_DOCUMENT assuming it is stored in a place that has a virtual mapping. For example:
    WEB.SHOW_DOCUMENT ('http://server/someLocation/file.pdf','_blank');If the file is on the client then you need to configure your application to use WebUtil. Then you can do what Francois suggested.

  • How to open -pdf in a secure environment

    Opening PDF files from a secured account on Internet (e.g. telephone billing info) does not work. in Safe as the file is shown as _pdf (underscore instead of dot).  We suspect this problem started after installing CS6, but are not sure. Win 7, IE 9, Reader XI

    PDF on a regular website can be opened and downloaded. However, PDF on a secure website (https) looks normal with normal icon but double click gives screen for open / save / save as. ‘Open’ gives no result, no error message either. ‘Save’ or ‘save as’ shows screen with filename ending on _pdf, which cannot be opened or saved, no error messages either. Changing the filename into .pdf gives the same reaction: nothing happens, no error messages.
    The same files can be opened on a different PC win7, IE9, Reader XI and similar software, but without CS6.
    Van: Pat Willener [email protected]
    Verzonden: 3 november 2012 5:19
    Aan: EllyHo
    Onderwerp: how to open -pdf in a secure environment
    Re: how to open -pdf in a secure environment
    created by Pat Willener <http://forums.adobe.com/people/pwillener>  in Adobe Reader - View the full discussion <http://forums.adobe.com/message/4820274#4820274

  • Is it possible to pass PDF (stored as BLOB) to PDFDocMerger

    HI Folks.
    Will PDFDocMerger Class allow you to pass in multiple PDF BLOBs as an input Stream Array?
    Any pointers appreciated as I need to know if this is a non-starter.
    I have many invoice PDFs stored as BLOBs in my database. I need a user to be able to select a bunch of these and have BIP merge them into one document.
    Any help greatly appreciated.
    Many thanks
    Dogfighter

    Hello Ike.
    I have downloaded the IDE and I am following the installation steps.
    I have performed step 3 and I have the following questions.
    1) I can see a node in JDeveloper called XMLPublisherDataTemplate.java but not one named format template. Should I be able to? Also, could not find this in the IDE download folders. Where should I be looking.
    2) I have executed the 'Run' on the XMLPublisherUtility.java node. The result was...
    \j2sdk1.4.2_13\bin\java.exe -jar D:\NGC IT\Software\Oracle\Java Developer\jdev\lib\ojc.jar -source 1.3 -target 1.2 -noquiet -warn -nowarn:320 -nowarn:486 -nowarn:487 -deprecation:self -nowarn:560 -nowarn:704 -nowarn:489 -nowarn:415 -nowarn:909 -nowarn:412 -nowarn:414 -nowarn:561 -nowarn:376 -nowarn:371 -nowarn:558 -nowarn:375 -nowarn:413 -nowarn:377 -nowarn:372 -nowarn:557 -nowarn:556 -nowarn:559 -encoding Cp1252 -g -d C:\BIPublisherIDE\BIPublisherIDE\classes -make C:\BIPublisherIDE\BIPublisherIDE\classes\BIPublisherIDE.cdi -classpath "\j2sdk1.4.2_13\jre\lib\rt.jar;\j2sdk1.4.2_13\jre\lib\i18n.jar;\j2sdk1.4.2_13\jre\lib\sunrsasign.jar;\j2sdk1.4.2_13\jre\lib\jsse.jar;\j2sdk1.4.2_13\jre\lib\jce.jar;\j2sdk1.4.2_13\jre\lib\charsets.jar;\j2sdk1.4.2_13\jre\classes;C:\BIPublisherIDE\BIPublisherIDE\classes;C:\BIPublisherIDE\BIPublisherIDE\lib\collections.jar;C:\BIPublisherIDE\BIPublisherIDE\lib\i18nAPI_v3.jar;C:\BIPublisherIDE\BIPublisherIDE\lib\j5472959_xdo.zip;C:\BIPublisherIDE\BIPublisherIDE\lib\jdom.jar;C:\BIPublisherIDE\BIPublisherIDE\lib\versioninfo.jar;C:\BIPublisherIDE\BIPublisherIDE\lib\xdochartstyles.jar;C:\BIPublisherIDE\BIPublisherIDE\lib\xdoparser.jar;C:\BIPublisherIDE\BIPublisherIDE\lib\xmlparserv2-904.jar;D:\NGC IT\Software\Oracle\Java Developer\jdbc\lib\ojdbc14dms.jar;D:\NGC IT\Software\Oracle\Java Developer\jdbc\lib\orai18n.jar;D:\NGC IT\Software\Oracle\Java Developer\jdbc\lib\ocrs12.jar;D:\NGC IT\Software\Oracle\Java Developer\diagnostics\lib\ojdl.jar;D:\NGC IT\Software\Oracle\Java Developer\lib\dms.jar;D:\NGC IT\Software\Oracle\Java Developer\j2ee\home\lib\activation.jar;D:\NGC IT\Software\Oracle\Java Developer\j2ee\home\lib\ejb.jar;D:\NGC IT\Software\Oracle\Java Developer\j2ee\home\lib\jms.jar;D:\NGC IT\Software\Oracle\Java Developer\j2ee\home\lib\jta.jar;D:\NGC IT\Software\Oracle\Java Developer\j2ee\home\lib\mail.jar;D:\NGC IT\Software\Oracle\Java Developer\j2ee\home\lib\servlet.jar" -sourcepath C:\BIPublisherIDE\BIPublisherIDE\src;\j2sdk1.4.2_13\src.zip C:\BIPublisherIDE\BIPublisherIDE\src\bipublisher\api\XMLPublisherApi.java C:\BIPublisherIDE\BIPublisherIDE\src\bipublisher\api\XMLPublisherDataTemplate.java C:\BIPublisherIDE\BIPublisherIDE\src\bipublisher\api\XMLPublisherDelivery.java C:\BIPublisherIDE\BIPublisherIDE\src\bipublisher\config\XMLPublisherConfig.java C:\BIPublisherIDE\BIPublisherIDE\src\bipublisher\utility\XMLPublisherUtility.java
    Error: cannot read: java.lang.Object
    [11:07:06] Successful compilation: 0 errors, 0 warnings.
    Can you suggest why I get "Error: cannot read: java.lang.Object"
    Many thanks
    Simon

  • How to open pdf files in browser using flex

    hi,
    my project is having a Document explorer wchich contains pdf
    files,iwant to open it in the browser.can any one tell me how to
    open pdf documents using flex programming(i tried with different
    thing like swf's but my client wants only pdf formatt).

    Another option is by calling a JSP page. This example will
    open a pdf file into a new browser without displaying the download
    "save" prompt.
    Function to call the JSP:
    private function downloadFlyer(event:Event):void {
    var jspLink:URLRequest = new
    URLRequest("jsp/downloadpdf.jsp?fileName=Fundraiser_flyer_2008.pdf");
    navigateToURL( jspLink, "_blank" );
    JSP code:
    <%@ page errorPage="error.jsp" %>
    <%@ page import="java.io.*" %>
    <%
    //Get the parameters
    String downloadFileName=request.getParameter("fileName");
    String fileName = application.getRealPath("/downloads/" +
    downloadFileName);
    File file = new File(fileName);
    if (!file.exists()) {
    throw new IOException("File does not exist.");
    // Get the size of the file
    long length = file.length();
    // You cannot create an array using a long type.
    // It needs to be an int type.
    // Before converting to an int type, check
    // to ensure that file is not larger than Integer.MAX_VALUE.
    if (length > Integer.MAX_VALUE) {
    throw new IOException("File too big.");
    response.reset();
    response.resetBuffer();
    response.setContentType( "application/pdf" );
    response.setHeader ("Content-Disposition", "filename=" +
    downloadFileName);
    //Prevent the Java error: "getOutputStream() has already
    been called for this response"
    out.clear();
    out = pageContext.pushBody();
    InputStream in = new FileInputStream(file);
    OutputStream output = response.getOutputStream();
    try {
    int curByte=-1;
    while( (curByte=in.read()) !=-1){
    output.write(curByte);
    } catch (IOException ioe) {
    ioe.printStackTrace(System.out);
    } finally{
    output.flush();
    in.close();
    response.flushBuffer();
    %>

  • How to open *.pdf files in BOXI r2 inbox

    I am scheduling as  *.pdf file for deski report.After scheduling i am getting *.pdf in my inbox.if the report is deski or webi we can use FC_REPORT_ENGINE or WI_REPORT_ENGINE to open the report's using java code.In same way how to open *.PDF file in Inbox?
    Edited by: ramkishore kishore on Nov 7, 2008 8:31 AM
    Edited by: ramkishore kishore on Nov 7, 2008 8:31 AM

    Hi Ram,
    Following information might help you to resolve the issue.
    After logging into Desktop Intelligence, you may be presented with a message stating:
    u201CYou have received 1 document from users"
    Examining the Inbox from within the Desktop Intelligence client shows no objects visible in your Inbox.
    The object in your Inbox is in a format other than Desktop Intelligence format such as, PDF, XLS or other format. Therefore the object is not recognized by the Desktop Intelligence client inbox browser.
    Log in to Info View or the Central Management Console, browse to your Inbox and verify the file name and format that has been sent to your Inbox. The object may be saved, copied, moved or deleted as necessary.
    Regards,
    Sarbhjeet Kaur

  • How to open pdf or word doc or notpad file in flex

    hai friends,
           how to open pdf or word doc or notpad file in flex. i am doing flexcoldfusion project. now i reterive data(notpad or worddoc or pdf file path) from database using coldfusion.now i want to open that file content .if i reterive notpad file .that will show in notpad. if it is possible. give example.
    regards,
    welcomecanv

    Hi WelcomeCan,
    Try this...
    var urlRequest:URLRequest = new URLRequest();
        urlRequest.url = "http://www.yourdomain.com/notepad.txt";
        //urlRequest.url = "http://www.yourdomain.com/FlexComp.pdf";
        navigateToURL(urlRequest,_blank);
    Thanks,
    Bhasker Chari

  • How to open pdf in labview

    How to open pdf in labview?
    please help me
     1110340028

    Unfortunatly, most of the PDF questions I have seen recently aren't simply "How do I launch another application in Windows"
    Edit: What Jeff and Dennis were getting at in their own way is that you can easily launch adobe reader to display a pdf if that is your only goal.  See: http://digital.ni.com/public.nsf/allkb/68A6F2A00872837E862576940059C142
    I am also quite certain you could find an ActiveX object that would just display PDFs as well.

  • Adf11g how to open pdf or html files from  webservice

    hi all,
    adf11g how to open pdf or html files from webservice .

    Hi,
    This is standard functionality, that you can read more about in the OLM User Manual. You can upload the files to an OLM content server or to any other content server that can be accessed with a URL.
    Regards Anders Northeved

  • Opening .pdf stored in oracle in studio creator

    I used iText libraies to open stored (as Blob or Clob type data) .pdf in oracle 10g release 2 database in studio creator.
    I'm using thin client driver...in oracle
    All things (uploading and retrieving ) works fine with the built in database..(point base)
    But when it comes to connect with oracle and for both retreieving and uploading the stored pdf,it is not working....
    Please help me regarding this matter

    Can you answer a few questions, to help track this down:
    What happens when you try to retrieve or upload a .pdf using Oracle?
    Can you store/retrieve .pdf files from the Oracle DB with a standalong application? That would tell you whether the problem lies with Creator, or Oracle.
    Finally, which JDBC driver are you using? Java Studio Creator bundles some Sun-branded drivers, which are supported. It sounds like you may be using the Oracle driver, which is not as compliant with the JDBC spec.

  • How to open pdf file in jsp having spaces in file name ?

    hi all,
    i have to open a pdf file in a jsp but some times that pdf file has spaces in the filename
    <a href ="openPdf.jsp?fileName=xyz.pdf">some  pdf file.pdf </a>how to open the pdf file in this case

    more info: java.net.URLEncoder or use response.encodeURL(...) to ensure sessionid is added when cookies are disabled

  • How to open PDF files in Safari

    How does one open PDF files when using Safari

    Typically, you click on a link to a pdf file, and they open. If for some reason that's not working, you can right click on the link and download the file, then it should open in Preview, or Adobe Reader if you've installed that.
    What exactly are you trying to open, and what's happening when you try it?

  • How to open pdf in Acrobat Reader in Firefox window/Tab when both Acrobat Pro and Acrobat REader are

    I would like to open pdf files in firefox using Adobe Acrobat Reader.
    I have both Acrobat Pro or whatever its called and Acrobat Reader installed.
    Presently going to firefox's tools, options, then selecting the file types option I cannot select any plugin to open my pdf's besides what's labeled as "adobe acrobat" but which executes an in-tab instance of Adobe Acrobat Pro, despite the ambiguous language on the plugin which I suspect stems from Adobe's evolving and confusing conventions regarding just what Adobe Reader, Adobe Acrobat, Adobe Acrobat Reader, and Adobe Acrobat Pro really is.
    Anyways, how to make pdfs open in-tab instances of Adobe Acrobat Reader while I have both the Reader and the Pro installed?
    Is there a sepperate plugin I need or something?
    Any help is very Appreciated

    eh,
    The problem w/ acrobat is that it takes forever to load
    I was going to just use reader to read documents, and acrobat to edit, so I could gut reader of all the plugins worthless for 99.9999 of pdfs I use and it'll load fast.
    foxit is nice, but won't open in-browser despite their continuing claims of supporting this feature.
    That's so bizarre that adobe won't allow you to choose which one you want to run. Its installed as sepperate programs on the uninstall list, on the "open with" context menu, and w/ file associations, so why would it not be possible to only open pdf links w/ one?
    Maybe its time to abandon acrobat and just use reader. There's much cheaper programs w/ all the same functionality as acrobat, so I guess I'll move on to those.
    If anyone else has suggestions feel free to make em.

  • How to open PDFs in Safari 8.0

    Been frustrated for a couple days now. Up until mid last week, I've been able to open PDFs inside the safari browser no problem.  I think this ended up changing in the latest Yosemite update.  Opening PDFs inside the safari window, not in a different tab is particularly crucial for my job, I use an agent webportal that requires PDFs to be filled out inside the browser window and submitted as such.
    I've had this happen a few times, usually it was fixed by deleting the adobe plugins in the internet plugins folder and/or simply resetting the safari browser back to default. What I've tried so far:
    uninstalling/reinstalling both reader and acrobat multiple times.
    deleting the plugins from the internet folder multiple times.
    tried switching up the default pdf view app, no change.
    tried as best as i could find to reset the settings on safari, but inside yosemite there appears to not be a reset option to bring it back to default.
    Honestly I'm at my wits end here with this thing. I've been using VMWare and windows 7 to complete the stuff I can't do in safari on IE.
    Is there something I haven't tried and/or does anyone know how to fully reset safari back to default in yosemite?
    specs - MBA 2011, Running 10.10.1. Using newest version of reader and acrobat 10.

    You don't without using custom css sheets. The web site developers specify the fonts to be used.

Maybe you are looking for

  • Unable to download latest update to premiere pro 7.2.2

    Unable to download latest update topremiere pro 7.2.2

  • Bypass XI for Interfaces

    Dear All, We have arround 135 interfaces which will be designed with XI. There is not validaation and error handling of data in XI simply it is passing to R3 system. Now client has suggestion that to by pass the XI and directly send the data to/from

  • Transport Tablespace using RMAN from 10.2.0.2 to 10.2.0.3 ??

    Hello all, Is it possible to do RMAN Transport Tablespace from 10.2.0.2 to 10.2.0.3 ?? TIA, J J

  • Why can't I import olympus e-p1 orf files

    I have just downloaded Lightroom CC. When I try to import Olympus E-P1 .ORF files I get constant error messages, such as unsupported or damaged files. The same files still import properly into Lightroom 5. Any ideas?

  • Keyword Tags with Vietnamese Letters

    Hi all of you! I am new in the forum. I am using Organizer in PSE 12. I have many Vietnamese friends and their names are something like Nguyễn Văn Tuấn or Đặng Bằng Kiều and so on. Try tagging the photos with their names, but Keyword Tags using th