Can Discoverer have link to display documents stored outside the database?

I posted a message some time ago called "Possible for Discoverer to display BLOB type documents stored in database?" and got great answer.
Now our customers are asking if it is possible, from Discoverer, to link somehow to a file stored outside the database on the Unix file system and get their computer to display it? Can anyone tell me if this is possible please?
The only thing I've seen in the documentation that may be related is in Oracle Business Intelligence Discoverer Configuration Guide, section 10.6 List of Discoverer user preferences. It says there that Discoverer preference ProtocolList can be set so that Discoverer hyperlinks can be set to use protocols such as telnet, but the default is HTTP, HTTPS, and FTP.
THank you in advance if you can help.
Regards,
Julie.

Hi Rod,
I have tried the second method: "create a Oracle directory pointing to the Unix directory containing the files". I have had success with it, but I'd be grateful if you could advise me if you would have done this the same way as described below:
I put two Word docs and two text docs called clob_test1.txt, clob_test2.txt, blob_test1.doc, blob_test2 in the Unix directory corresponding to an Oracle directory called 'EIF'. I thought an extrenal table was needed so that Discoverer would have an object to write a queruy against. So I created a file called lob_test_data.txt with the following contents:
1,01-JAN-2006,text/plain,clob_test1.txt
2,02-JAN-2006,text/plain,clob_test2.txt
3,01-JAN-2006,application/msword,blob_test1.doc
4,02-JAN-2006,application/msword,blob_test2.
THen I created an external table using the following DDL:
CREATE TABLE jum_temp_lob_tab (
file_id NUMBER(10),
date_content DATE,
mime_type VARCHAR2(100),
blob_content BLOB
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER
DEFAULT DIRECTORY EIF
ACCESS PARAMETERS
RECORDS DELIMITED BY NEWLINE
BADFILE EIF:'lob_tab_%a_%p.bad'
LOGFILE EIF:'lob_tab_%a_%p.log'
FIELDS TERMINATED BY ','
MISSING FIELD VALUES ARE NULL
file_id CHAR(10),
date_content CHAR(11) DATE_FORMAT DATE MASK "DD-MON-YYYY",
mime_type CHAR(100),
blob_filename CHAR(100)
COLUMN TRANSFORMS (blob_content FROM LOBFILE (blob_filename) FROM (EIF) BLOB)
LOCATION ('lob_test_data.txt')
PARALLEL 2
REJECT LIMIT UNLIMITED
then created a Discoverer End User Layer folder against this external table, and used exactly the same technique as we did for downloading the BLOB from the database table (creating a new folder item containing a URL calling a database procedure which calls the Oracle code to download the doc). THis worked, but sometimes my PC didn't seem to know that the Word docs were Word docs and it needed to launch Word. Other times it did manage to do this OK. It always displayed the two .txt files as HTML docs.
Just wondered if you'd be good enough to critique this approach.
THank you, Julie.

Similar Messages

  • Display images stored in the database

    I have images stored in the databse. I followed the steps provided in the oracle documentation. Now i want to retrive the image from the database into a java object that can be dislayed in , say, a JLabel. I am able to retrieve the image from the database into the OrdImage in the oracle.java.ord package and view the properties of the image. But unable to retrive the image as such to be displayed.
    Thanking You
    vinay

    This might help...
    import javax.imageio.*;
    import javax.imageio.stream.*;
    import javax.swing.*;
    import java.awt.*;
    import java.sql.*;
    import java.io.*;
    import oracle.jdbc.driver.*;
    import oracle.sql.* ;
    import oracle.ord.im.*;
    import java.awt.event.*;
    public class HelloDBImage implements ActionListener{
    OracleConnection con = null;
    JLabel label = null;
    String textFieldString = "Image ID entered";
    public void actionPerformed(ActionEvent e)
    String prefix = "You typed \"";
    if (e.getActionCommand().equals(textFieldString))
    JTextField source = (JTextField)e.getSource();
    ImageIcon imgIcon = createImageIcon(source.getText());
    if (null != imgIcon)
    // Create image Label
    label.setText(null);
    label.setIcon(imgIcon);
    else
    label.setIcon(null);
    label.setText("Image not found! ");
    source.setText("");
    label.repaint();
    //actionLabel.setText(prefix + source.getText() + "\"");
    public ImageIcon createImageIcon(String key)
    Image image = null;
    ImageIcon imgIcon = null;
    try
         // Connect to the database if necessary
    if (null == con) con = connect();
    // Create Input Stream from DB image.
    InputStream is = new BufferedInputStream(
    getDBInputStream(con, key));
    if (null != is)
    // Create Image from Image Input Stream
    ImageInputStream iis = ImageIO.createImageInputStream(is);
    image = ImageIO.read(iis);
    // Create Image Icon from ImageInputStream
    if (null != image) imgIcon = new ImageIcon(image);
    } catch (Exception e)
    System.out.println("exception raised " + e);
         e.printStackTrace();
    return imgIcon;
    public Component createPanelAndContents(String key)
    // Create the image label
    ImageIcon imgIcon = createImageIcon(key);
    if (null != imgIcon)
    // Create image Label
    label = new JLabel(imgIcon);
    else
    label = new JLabel("Image not found! ");
    // Create layout
    GridBagLayout gridBag = new GridBagLayout();
    // Create panel to draw in
    JPanel pane = new JPanel();
    pane.setLayout(gridBag);
    GridBagConstraints c = new GridBagConstraints();
    JScrollPane scrollPane = new JScrollPane(label,
    JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
    JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    c.fill = GridBagConstraints.BOTH;
    c.weightx = 1.0;
    c.weighty = 1.0;
    gridBag.setConstraints(scrollPane, c);
    c.gridwidth = GridBagConstraints.REMAINDER;
    c.fill = GridBagConstraints.HORIZONTAL;
    scrollPane.setMinimumSize(new Dimension(300, 300));
    pane.add(scrollPane, c);
    // Add a text field and label to get anoter image
    JTextField textField = new JTextField(10);
    textField.setActionCommand(textFieldString);
    textField.addActionListener(this);
    // Add fields for input
    JLabel promptLabel = new JLabel("Please enter DB key: ");
         pane.add(promptLabel);
    pane.add(textField, c);
    return pane;
    public static void main(String[] args)
    String key = "1";
    try
    UIManager.setLookAndFeel(
    UIManager.getCrossPlatformLookAndFeelClassName());
    } catch (Exception e) { }
    //Create the top-level container and add contents to it.
    JFrame frame = new JFrame("SwingApplication");
    HelloDBImage app = new HelloDBImage();
    if ((args.length > 0) && (args[0] != null)) key = args[0];
    System.out.print("length= " + args.length + "/" );
    if (args.length > 0) System.out.println(args[0]);
    Component contents = app.createPanelAndContents(key);
    frame.getContentPane().add(contents, BorderLayout.CENTER);
    //Finish setting up the frame, and show it.
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    frame.pack();
    frame.setVisible(true);
    public InputStream getDBInputStream(OracleConnection con, String key)
    InputStream is = null;
    try
         int index = 0;
         Statement s = con.createStatement();
         OracleResultSet rs =
         (OracleResultSet)s.executeQuery("select * from images " +
    "where item_id = " + key );
         if (rs.next()) // Just get first image if more than 1.
         index = rs.getInt(1);
         OrdImage imgObj =
    (OrdImage) rs.getCustomDatum(2, OrdImage.getFactory());
    is = imgObj.getContent().getBinaryStream();
    catch(Exception e)
    System.out.println("exception raised " + e);
    e.printStackTrace();
    return is;
    public OracleConnection connect() throws Exception
    String connectString;
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    connectString = "jdbc:oracle:oci8:@orcl";
    OracleConnection con = (OracleConnection)
    DriverManager.getConnection(connectString,"scott",
                        "tiger");
    con.setAutoCommit(false);
    return con;

  • Display HTML stored in the database

    Hi
    CREATE TABLE source
    (sql_text CLOB
    The content of sql_text is text surrounded by various HTML-tags.
    Which options do I have for displaying sql_text formatted according to the HTML-tags? In other words how can I get apex to send the content of sql_text to the browser with out escaping the tags?
    Marius

    Since I haven't found a way to list a report (more than one row from the database), I ended up using a Display as Text (does not save state) and the following SQL as source
    SELECT CONCATINATION(CURSOR(SELECT somecolumn FROM sometable ORDER BY order_key)) FROM DUAL;
    CREATE OR REPLACE FUNCTION CONCATINATION(l_cursor IN SYS_REFCURSOR, seperator IN VARCHAR2 default '<BR>') RETURN clob
    IS
    string clob;
    sub_string clob;
    BEGIN
    LOOP
    FETCH l_cursor INTO sub_string;
    EXIT WHEN l_cursor%notfound;
    IF l_cursor%ROWCOUNT = 1 THEN
    string := sub_string;
    ELSE
    string := string || seperator || sub_string;
    END IF;
    END LOOP;
    RETURN string;
    END;
    Edited by: Marius2 on Mar 23, 2009 8:37 PM
    Fixed a small bug

  • Displaying images stored in the database

    Hi,
    I'm saving image files (bmp, jpg, gif) in the database as binary data (I'm using SQL Server). Then, I have to retrieve this file and show the image in a JSP.
    I'm using Struts 1.1, SQLServer and weblogic.
    How can I do this?
    Thanks

    Here is a good starting point:
    http://forum.java.sun.com/thread.jsp?thread=338890&forum=45&message=1391475

  • Oracle reports to display PDF/Excel files stored in the Database

    can we use Oracle reports to view/display PDF/Excel files stored in the Database? Thanks Lalitha

    A document stored in the database can be easily retrieved in or via the browser using mod_plsql. Simplified:
    select content, mime_type
    into v_blob, v_mime_type
    from ...
    owa_util.mime_header(nvl(v_mimetype,'application/octet'),false);
    htp.p('Content-length: ' || dbms_lob.getlength(v_blob));
    owa_util.http_header_close;
    wpg_docload.download_file(v_blob);So, the link in your report should point to this database procedure.
    Edited by: InoL on Mar 1, 2011 4:17 PM

  • Link a document, stored in the DB

    Hi,
    I require the same document for two different business process.
    To copy the document is not an option.
    The document is stored in the database consequently I need a reference to the document.
    any ideas?
    Thank you in advance
    Michael Kuehne

    Hello Michael,
    if you work in SOLAR01 or SOLAR02 why don't you use the option to insert a document via a link ? It is available on each tab where you can add documents : Insert document-> Reference to Solution Manager Document.
    Best regards
      Jürgen

  • OBE-15502: Can only have 16000 rows per document

    Hi,
    I am using Oracle 6i Query Builder to export data to Excel sheet and got error:
    OBE-15502: Can only have 16000 rows per document
    Is there any way i can export MORE than 16000 rows to Excel?
    Thanks

    No, 16000 rows is a general limit, independent of a third party tool like Excel.
    The only advice I have is, you should consider Oracle Discoverer instead of Query Builder. Query Builder belongs to Developer 6i and is going to be desupported.

  • On my mac when i click on pages, a new document doesn't open instantly  but a window with my files open and then  have to click on the left bottom new document in order to open one. How can i have directly a new document when i click on pages icon

    On my mac when i click on pages, a new document doesn't open instantly  but a window with my files open and then  have to click on the left bottom < new document> in order to open one. How can i have directly a new document when i click on pages icon

    How to open an existing Pages document?
    Click Pages icon in the Dock to launch Pages.
    When Pages is open, click File menu in the  Pages menu bar.
    Select “Open”.
    When the select document  dialog box opens up, highlight/select the document and click “Open”
    at the bottom right corner of the dialog box.
    s
    https://support.apple.com/kb/PH15304?locale=en_US

  • How can I have a standard text block appear on the last page of my documents?

    How can I have a standard text block appear on the last page of my documents without having to type it in all the time? I have a terms statement with a line for a customer’s signature which I want on the last page of my invoices and right now I have to type it in each time or cut and paste it from a previous invoice. I already have a Master Page that includes the customer information and my company information at the top of each page and I am using data merge to fill each page with the items ordered and their pictures etc. I would just like to have this standard terms block automatically show up on the last page after the last item in the data merge.
    Thank you all in advance for your help.

    Thank you Peter. This works. I have the text block now at the bottom of a second master page which I apply to the last page. For aesthetics I can modify the position of the text block in the new master page to bring it up from the bottom under the last item ordered when there is less than 4 items on the page. (my data merge fits up to 4 items with their images on a page).  If the last page is full I’ll insert a final page using the second master and also bring it up to the top of the page.

  • I am using an Macbook pro in conjunction with a Time Capsule. I back up all my aperture librarys on it, but how can i view these images that are stored on the capsule please ??

    I am using an Macbook pro in conjunction with a Time Capsule. I back up all my aperture librarys on it, but how can i view these images that are stored on the capsule please ??

    If you want to see what is in a file that is backed up by time machine then you have to restore the entire file. Having said that I have had good experience with Time Machine and individual files... if the file is there then all of it's components are almost for sure there. A way to get around this in Aperture would be to use referenced images. The images then still exist as individual files and can be backed up and restored individually. You would have to do so on a file by file basis though and your album information would still only be saved within the Aperture library.

  • SharePoint 2013 - Document Set Capture Version History. Does each version captured for each document set keep a copy of all the document stored in the document set?

    Hi All,
    We have currently encountered an issue where even though version control is turned on in a document library, changes made to the metadata of a document set is not tracked in a version history. 
    We have found that in order to this a user will need to manually click on the capture version history button. 
    With this in mind, we are concerned about the impact of this on our storage. The question we have been trying to answer is whether each document set version:
    stores the change in metadata of the document set and a copy of all the documents stored in the document set
    stores the change in metadata of the document set and a reference to the documents stored in the document set (making use of SharePoint 2013's shredded storage)
    The reason we ask this is that if a document set version stores a copy of all the document stored in a document set, a change in one of the fields in the document set could result in the storage used to grow exponentially. e.g. if the document set contains
    documents totaling 30MB, and if we have 10 versions of the document set, we could take up 300 MB in the content database for just one document set.
    We have tried to some searching around Google but wasn't able to find any answers around this question. Would appreciate some assistance from anyone who has knowledge around how document set version history works. 
    Thanks in advance.
    John

    i had a long thing written out, but submit failed.  suffice to say it does "2".  it only stores the changes with pointers to the documents. 
    Christopher Webb | Microsoft Certified Master: SharePoint 2010 | Microsoft Certified Solutions Master: SharePoint Charter | Microsoft Certified Trainer| http://tealsk12.org Volunteer Teacher | http://christophermichaelwebb.com

  • Best ways to view/display PDF/Excel files stored in the Database

    What are best ways to display/view PDF/Excel files stored in the Database? thanks L

    Thanks tom, sorry let me explain. Currently we have oracle forms screen, using webutil to store/view files into DB. client won't like the interface, they want us to make it more friendly, drag and drop if possible, load multiple files, as possible.. So I am exploring different ways to improve may be java (or jdev/any any other), different screen designs, different features for fileupload/download/view options.

  • I recently accepted an automatic update to pages on my MacBook Pro. I can no longer open pages or documents created through the older version of Pages......Any suggestions?

    I recently accepted an automatic update(January, 2014) for Pages on my MacBook Pro. I can no longer open Pages or documents created with the prior version. Any suggestions as to how to correct this problem?

    Open Activity Monitor. Select All Processes instead of My Processes at the top and then reorder everything by highest CPU usage. Take a screenshot and post the image here.

  • Can i have more than one ipod touch on the same account, or must they both be set up with different id's.

      Can I have more than one ipod touch on the same account, or must they each have their own ID.

    If you use the same account see the following to separate Messages and FaceTime between the two iPod see:
    MacMost Now 653: Setting Up Multiple iOS Devices For Messages and FaceTime

  • Can you have more than one apple id under the same account

    can you have more than one apple id under the same account

    Stop using the same Apple ID for iMessage on these devices.  Go to Settings>Messages>Send & Receive (Receive At in iOS 5), tap the ID shown, sign out, then sign back in using a unique ID for each device.  (Or, just sign out and stop using your Apple ID for iMessage.)

Maybe you are looking for

  • Error message in itune 10.4.0.80

    this is a message I've seem for at least a few upgrades since v10 iTunes was not properly installed. If you wish to import or burn CDs you need to reinstall iTunes. Wich of course, I've done at least 50 times. Emptied temp files, reinstalled windows,

  • Any fix for touch pad issue in mac book pro on windows 7?

    Hi, I've recently installed windows 7 and parallels in my mac book pro. While i run windows with the parallels track pad, scrolling and right click are functioning properly. But when i logon to windows directly none of them are functioning. Pls lemme

  • Home directory is read only

    Hi - I'm having a strange problem with my home directory on my MacBook Pro that is running Leopard. The finder window for my home directory claims it is read only (the pencil with a line through it shows up). However, if I do a Get Info on it, it say

  • Adobe Flash plug-in crashes whenever I try to broadcast on tinychat.

    I click on "Start Broadcasting" and choose my webcam, then I click "Webcam Only" and then "Finish" It hangs for a moment and then crashes with the message "Adobe flash plugin has crashed reload this page to try again. (I've also tried to do mic and w

  • ADF LOV not showing

    We have discovered an issue with a deploy of an ADF/JHeadstart application in a citrix access gateway. It seems that the context-root of a runtime javascript 'scriptEval10_1_3_4_0.js' is missing. The contex-root before this call is visible and seems