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.

Similar Messages

  • 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.

  • Unable to open PDF or HTML Oracle Reports Tutorial Documentation

    Hello,
    I am trying to open the PDF Oracle Reports Tutorial Documentation for General Documentation Release 10g Release 2 (10.1.2) from the following location: http://www.oracle.com/technology/documentation/reports.html, but it does not seem to be working. All the other PDFs are working fine. Is this a bug?
    Kind regards,
    Dirk-Abe
    null

    Did you found the solution?

  • Adobe Reader 10 problem with opening pdf files

    Ever since I downloaded and installed Adobe Reader 10, I have been unable to open .pdf files from the Internet.  When
    I try to download them, I only the get the option of saving the file, not opening it.  Any help would be appreciated.  Thanks!

    We had similar problems with both the upgrade to 9.4.2 and 10.0.1. We would either get the download/save screen or a black screen would appear and eventually error out and freeze up the machine when we tried to hit pages that loaded pdfs stored in Oracle.  We found the pdfs would load when using Chrome or Firefox.
    We're running winXP SP3 and mainly have users using IE 7 and IE 8.  We were eventually able to solve the problem by doing the following:
    Implementing the code fix outlined in this thread (Response.charset = null;) in the page that pulled pdfs from Oracle: http://forums.adobe.com/message/3476821
    Uninstalling and reinstalling the base version of Reader (9.4.0 or X.0) from users' machines that had gone through the update from 9.x to X.x
    Rebooting the machine after each uninstall or install
    Updating the Reader to either 9.4.2 or 10.0.1
    Now we have users who can successfully load the pdfs from Oracle who are running either 9.4.2 or 10.0.1.
    Hope this helps!

  • How do I open a pdf stored in a Microsoft Access database using Visual Basic studios 2012

    Currently I am unable to find a valid method of being able to open a pdf stored in a Microsoft Access database using Visual Basic studios 2012. I've tried displaying the entire database on a form, but when I do this all the other columns show up with
    the correct data besides the one containing the pdf's, it just displays <binary data> in each row down the column. I also tried another method with which you use the database as a dataset and can drag and drop the rows and columns into the form, which
    again works for all the other columns besides the one containing the pdf's but this time I'm unable to interact with the column  at all. 
    Not too sure if this is in the correct place, but any answers or help would be appreciated. Cheers.

    Alex,
    This forum is dedicated to Project and Project Server. You might get better response, if you post to a Visual Basic forum. Here are couple I could find. 
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral%2Cvblanguage&filter=alltypes&sort=lastpostdesc
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • View pdf file stored in oracle database through oracle forms

    Forms [32 Bit] Version 10.1.2.0.2 (Production)
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    Oracle Toolkit Version 10.1.2.0.2 (Production)
    PL/SQL Version 10.1.0.4.2 (Production)
    Oracle Procedure Builder V10.1.2.0.2 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle Query Builder 10.1.2.0.2 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.2 (Production)
    Oracle Tools GUI Utilities Version 10.1.2.0.2 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE     10.1.0.4.0     Production
    I have created external directory and am able to load pdf files in oracle database table called test_blob.
    CREATE TABLE test_blob (
    id NUMBER(15)
    , file_name VARCHAR2(1000)
    , image BLOB
    , timestamp DATE
    I have 2 pdf files in the table. I want to view this pdf from forms when the user clicks on the button. On when-button-pressed trigger I want to show pdf on the screen. Any help is appreciated. Not on the designer. I want to run form application.
    SELECT id, file_name,
    DBMS_LOB.GETLENGTH(image) Length,
    timestamp
    FROM test_blob
    ID|FILE_NAME|LENGTH|TIMESTAMP
    1001|2011 HeartlandEmployeeReferralCard.pdf|353718|1/28/2013 11:44:41 AM
    1002|2011 HeartlandEmployeeReferralCard.pdf|353718|1/28/2013 11:51:07 AM
    Edited by: user_anumoses on Jan 28, 2013 11:45 AM

    We were able to do the same thing with Oracle Application Server and Oracle WebLogic Server. I cannot remember how different the processes were, but it seems like they were very similar. I am going to give you the instructions on how we implemented a "Read PDF" procedure on the WebLogic Server. If you are still on the Application Server you may have to do some Google searches, but it all boils down to the mod_plsql DAD Configuration file.
    Our PDF was located in a table with the following structure:
    CASE_DOCUMENTS
       (id_document                    NUMBER NOT NULL,
        doc_blob                       BLOB,
        note                           VARCHAR2(240),
        created_by                     VARCHAR2(20) NOT NULL,
        created_dt                     DATE NOT NULL,
        case_id                        NUMBER NOT NULL,
        filename                       VARCHAR2(100) NOT NULL)Based on that table structure we created a procedure named READ_PDF which you will reference below in the dads.conf file below:
    CREATE or REPLACE procedure read_pdf (p_id_document IN number)
    is
      view_file     blob;
    BEGIN
      select doc_blob
        into view_file
        from case_documents
       where id_document = p_id_document;
      OWA_UTIL.MIME_HEADER ('APPLICATION/PDF', FALSE);
      HTP.P ('CONTENT-LENGTH: ' || DBMS_LOB.GETLENGTH (view_file));
      OWA_UTIL.http_header_close;
      WPG_DOCLOAD.download_file (view_file);
    END;
    GRANT EXECUTE ON read_pdf TO financial_user_role  -- Name of role to execute
    /Basically, you are passing in one parameter and that is the primary key for your table. You are selecting the pdf stored in a BLOB for that primary key. The commands below that allow the pdf to open up so you can view it – we got this off some search we did a few years ago.
    Now, you need to add logic to your Oracle Form that will call the procedure above, but the URL is based on the dads.conf file that we will set up below… Anyway, we created a button on the form module with a label of "View". In the WHEN-BUTTON-PRESSED trigger the logic looks like this:
    -- The View logic uses the DAD (Database Access Descriptors) method to view a .pdf file from the form.
    -- The DAD was created on WebLogic Server  with the name findadgen.  This allows an http request be made
    -- to the database.
    declare
      v_file          varchar2(400);
      v_success       boolean;
      ret_val         number;
      v_http_link     varchar2(400);
    begin
      -- The format of the link is as follows: hostname:port/pls/DAD_name/procedure_name
      v_http_link := 'http://finas03:8888/pls/findadgen/read_pdf?p_id_document=' || :case_documents.id_document;
      web.show_document(v_http_link, '_BLANK');
    end;The name of our WebLogic Server is "finas03" so that is what is listed in the URL. The "findadgen" is the name of the <Location> in the dads.conf file below, the "read_pdf" is the name of the procedure we created above, the "p_id_document=" is the IN parameter listed in the READ_PDF procedure created above, and the ":case_documents.id_document" is the reference to the primary key in our Oracle Form.
    For WebLogic, you can either go through Enterprise Manager (directions below) or update the dads.conf file on the filesystem directly (if you update the dads.conf file directly then skip to step 4 and ignore step 5):
    1.     Enterprise Manager -> Web Tier -> ohs1
    2.     Oracle HTTP Server (pull-down) – Administration – Advance Configuration
    3.     Select File – dads.conf
    4.     Add something similar:
    # ============================================================================ 
    #                     mod_plsql DAD Configuration File                         
    # ============================================================================ 
    # 1. Please refer to dads.README for a description of this file                
    # ============================================================================  
    # Note: This file should typically be included in your plsql.conf file with 
    # the "include" directive. 
    # Hint: You can look at some sample DADs in the dads.README file 
    # ============================================================================
    <Location /pls/findadgen>
        SetHandler pls_handler
        Order allow,deny
        Allow from All
        AllowOverride None
        PlsqlDatabaseUsername financial
        PlsqlDatabasePassword sdo_3#d1
        PlsqlDatabaseConnectString ffindbTNSFormat
        PlsqlNLSLanguage AMERICAN_AMERICA.WE8ISO8859P1
        PlsqlAuthenticationMode Basic
        PlsqlDefaultPage read_pdf
    </Location>You are adding the <Location> section to your dads.conf file. The "finddadgen" is the name that you will reference in a change you fill make to your Oracle Form. The "financial" is the Schema, the "sdo_3#d1" is the password for that Schema, the "ffindb" is the database that the stored procedure is located on, and the "read_pdf" is a stored procedure you will have to create in order to read the pdf.
    5.     Press the "Apply" Button
    6.     Obfuscate the DAD password by running the dadTool.pl script located in $ORACLE_HOME/bin (This was done on Unix on our server with the following commands):
    $> LD_LIBRARY_PATH=$ORACLE_HOME/lib;export LD_LIBRARY_PATH
    $> cd $ORACLE_HOME/bin
    $> perl dadTool.pl -f /u01/app/oracle/middleware/asinst_1/config/OHS/ohs1/mod_plsql/dads.conf
    7.     Restart the Oracle HTTP Server using Fusion Middleware Control:
    Enterprise Manager -> Web Tier -> ohs1
    Oracle HTTP Server – Control – Shutdown
    Oracle HTTP Server – Control – Start Up
    If you followed the instructions above, you should have created a stored procedure, added logic to your Oracle form to reference that stored procedure, and created an entry in the dads.conf file. Once you move the form onto the server and you restart the HTTP Service, you should be able to view a pdf that is stored in a table directly from your Oracle Form.

  • I am programming a DVD-Rom in DVD Studio Pro 4 and need to display and open pdf files, any suggestions?

    I am programming a DVD-Rom in DVD Studio Pro 4 and need to display and open pdf files, any suggestions?

    http://documentation.apple.com/en/dvdstudiopro/usermanual/index.html#chapter=22% 26section=9%26tasks=true

  • Error opening pdf's from PC stored on Mac

    I have been experiencing an error when attempting to open pdf's stored in the public folder on our Mac.
    The message reads:
    "There was an error opening this document. The file is already open or in use by another application."
    It doesn't matter which PC we use to access the pdf's from and happens regardless of which version of Acrobat is being used, the same error occurs.
    The public folder on the Mac has no restrictions.
    Mac 3.2 GHz Quad-Core Intel
    OS 10.9.4
    Adobe Creative Suite 2014
    *Also discovered none of the InDesign, Photoshop or Illustrator files can opened from PC's can be opened while they are stored on the Mac either.
    Thanks,
    Chuck

    Thanks for responding. We do not work using a Windows domain.
    I can open .txt and Microsoft Publisher files, but I get errors on nearly everything else including any Adobe product files and Word files.
    We used to keep files both the PC and Mac had to access on an external network drive, but exporting pdf's from the Mac (as well as opening and saving) took too long. So we moved everything to the Mac. If I have to work on a file I have to drag it to the PC desktop. We can't save directly to the Mac either. Files have to be copied onto the Mac.

  • How to open a PDF stored on my computer with FF PDF js?

    I want to open PDF files stored on my computer with FF PDF js.
    Reason: This way I can search my local PDFs loaded in a FF Window together with other tabs in a FF Window using the FF ad-on HUGO or any other search tool for tabs.
    Thank you for your help
    Ludwig Müller

    Thank you for your reply. My problem is that what you describe does exactly not work. When I say "open with firefox" I am prompted with the pop-up window "what should firefox do with this file?" - and then choosing FF creates an empty "New Tab" and I am prompted again with the same pop-up.
    What differentiates FF PDF js from all other PDF viewers is, that it is an OPEN APPLICATION, which means I can search it with FF search tools across all tabs.
    Example: I do have 50 tabs open and I want to search for a specific term in one go over 50 tabs, I can do this with the add-on HUGO (I was the co-developer for this add-on, the author is Allasso Travesser) for tabs with html or PDFs that are loaded in FF PDF js Viewer. Now, with PDFs from the internet no problem, but I can't load my own PDFs into FF.

  • Does Studio Creator support Oracle ADF Faces and other components?

    Hi everyone
    According to:
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/faq.html
    "Although ADF Faces is "vanilla" JSF we have not been able to run with Java Studio Creator Build 04.06.2. We are working with Sun to resolve the issues in Java Studio Creator."
    Does anyone know if Oracle ADF faces now work with Studio Creator and if so which version.
    In addition I am also looking for JSF visualization components. In addition to advanced 3-D graphs (send as PNG to client) I am also looking for components to visualize the structure of a website. These all need to work with Studio Creator.

    Importing 3rd party libraries used to be complicated. The .complib stuff was added precisely to make it easy.
    It does make packaging slightly harder for third party -vendors-, since there's one extra step, but this makes everything easier for (the much larger number of) users of the third party components, since the packaging format specifies a bunch of stuff that we used to have to ask of users when trying to add the jar and associated metadata into the IDE.
    The complib stuff is documented, so if you're producing a 3rd party JSF library, or if you really want to use one that hasn't yet been packaged, you can do the steps yourself.
    See http://wiki.java.net/bin/view/People/EdwinGoei -- the first couple of links describes the process. Yes, we're working with third party vendors to get this done for their component sets, and yes, there's talk with other IDE vendors to standardize all this.
    -- Tor
    http://blogs.sun.com/tor

  • Deploying Java Studio Creator webapps to SJSAS PE 8.1 + Oracle

    Has anybody managed to deploy Java Studio Creator webapps to Sun Application Server PE 8.1 ?
    Everything works fine in the Java Studio Creator embeded app server (8.0?), but I get the following error when I try to access the database (Oracle 9):
    [#|2005-01-25T20:33:48.642+0000|SEVERE|sun-appserver-pe8.1|javax.enterprise.system.container.web|_ThreadID=19;|WebModule[/smwebinterface]userView Initialization Failure
    javax.faces.FacesException: java.sql.SQLException: JDBC driver does not support PreparedStatement.getMetaData()
    I'm using the latest (9.2.0.5) oracle jdbc drivers downloaded from their webpage.
    Thanx,
    Pedro

    PreparedStatement.getMetaData() is not required to be supported by a J2EE compliant JDBC driver. This is an optional feature. I would suggest that you post on the Creator newsgroup to see if they have a workaround for you as perhaps their is a config setting.

  • Opening pdfs from Connect Stored Content flashes content and disappears???

    I've checked the existing threads and don't see this exact problem, so here goes - I hope someone can help! 
    I am using Adobe Connect and have pdfs stored on the server in my hosted account.  When I use Firefox, and I click on the link to bring up the pdf, a new window opens, the file loads and displays for a fraction of a second and then the window goes white.  If I hit refresh, the file flashes again and disappears.  It works OK in IE, but I seem to have this problem with all the pdfs in the Connect environment using Firefox.  I can view other pdfs in Firefox, just not these ones. It happens whether I am in the admin section and click a link from the stored content area, or copy/paste the url into the browser and try to access it that way.
    I'm using a PC, Windows 7, 64 bit, Firefox 10.0.2, and have installed all the updates for Connect.  Help?!
    Cheers, Kit.

    It sounds like you have an issue with using more than one Apple ID.  Only one Apple ID owns the purchased content.  If a different Apple ID tries to access it, issues result.

  • I have lost the app that opened and stored my PDF files

    I thought this app came preloaded. Can't remember the name (brain freeze). It opened and stored all the PDF files attached to email. The icon had the look of newsstand. Naturally I lost my PDF files as well.

    Apple's iBooks app does this, but a PDF email attachment is not automatically copied to the iBooks app when opened with the email. You must manually select "open in iBooks".
    The iBooks app can be deleted and re-downloaded from the iTunes app store and is a free app.

  • Opening Java Studio Creator

    After I had successfully installed my Studio Creator last night, I opened the application briefly; it looked okay. This morning, I tidied up my folders and moved the application into a new folder using Windows Explorer. This evening, I tried to open Creator, but I got the message "Cannot load jvm.dll"! I then tried starting the Application server and Pointbase and neithe would open - they just blinked and went dead! Can anyone help? And by the way, I am using XP Pro.
    I am eager to start using the apps.

    Thanks to all that replied. I went through some not-so-nice experience before settling for reinstalling Creator. Even then, it proved difficult to uninstall - because the uninstaller could no longer find the program where it expected to find the programme. Even "Add/Remove" did not work! Fortunately, it's early days yet with my computer, and I'd already partitioned out a drive strictly for applications; so since everything is virtually new in this drive, I reformatted the drive using PartitionMagic, I also manually deleted the shortcuts to the previous installations and then installed everything fresh in the folders of my choice and I am living happily ever after. Thanks y'all. Famiukinolo.

  • 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

Maybe you are looking for

  • SPOD won't go away ... long history of problems

    I have a first generation 17" macbook pro and lately the spinning pizza of death (spod or spinning color wheel as others call it) just won't stop. Over the past 6 months, a 1 gig ram chip died and I've been through 2 hard drives. My 80 gig original d

  • Warnings when I downconvert from LV8.6 to LV8.0

    I tried to downconvert some VIs from LV8.6 to LV8.0. For this VI, after "save to previous version", I received those messages:     The object "Multiply" does not support output configuration in the previous version.     The object "Multiply" does not

  • DB-13 Error ( checkdb )

    Hello Gurus, In T-Code DB-13, I created some Jobs example like checkdb, update stats, etc etc while running this jobs giving me this error can anybody tell me what is the rectification or what is a needful to solve this problem Job started           

  • Problems printing with older Classic applications using OS 10.4.8

    Newly installed OS 10.4.8. Unable to print from older applications using OS 9.2.2 Classic capability. Error Messages: (1) Not Apple Event Aware. (2) Desk Top Print 2.0 not installed. What is my remedy?

  • Performance bug observed in BaseCompose.finishComposeLine

    We were seeing some performance issues when editing documents and noticed that it was occurring in documents that had underlined text.  The issue was that any text line that contain underlined FlowLeafElements was getting extra Adornment Shapes added