APEX- How to open world document (and other files) stored in a blob column?

Hi,
I have an application developed in Oracle Apex 3.2.1 and RDBMS Oracle 9.2.0.8 (SUN SOLARIS SPARC 64 BITS).
I have a table called BAC_ARQUIVO, with the following structure:
CREATE TABLE BAC_ARQUIVO
(NAME VARCHAR2(4000), /* Name of the file stored in BLOB column */
SUBJECT VARCHAR2(4000), /* A brief description about this file stored */
ID NUMBER, /* An identification of this file - It´s a PK column of this table*/
BLOB_CONTENT BLOB, /* Blob field that store diferent kind of files - XLS, DOC, PPT, PDF, EXE, ZIP, etc);
MIME_TYPE VARCHAR2(4000) /* Identification about which kind of file is stored on BLOB field */
The field BLOB_CONTENT of this table can store:
- Executable files;
- MS-World Documents (DOC);
- Zip Files (ZIP);
- Ms-Excel Files (XLS);
- Ms-Powerpoint files (PPT);
- Adobe documents (PDF);
Actually, in this APEX application, i have developed a interactive Report in which the user can download these files to desktop without problems.
But now, my user would like to know if it´s possible that APEX application can OPEN some of these files stored on this BLOB column WITHOUT download it.
My user would like to see a hiperlink (or button) that, if pressed/acessed, can open a new page (or a page inside application) with the document. He doesn´t need to edit this oppened file. He only wants to see it.
For example, if the file stored in the blob column is ms-word type , so the application will open a MS-WINDOWS application with these file.
Is it possible?
I saw in this forum that it´s possible to open a file stored on "/i/" directory, but i need to open the file stored in BLOB column. I don´t want to store the file in operational system of the server.
Could any one demonstrate to me how it could be done?
Best regards,
Sergio Coutinho

Hi Sergio,
This link might be helpful:
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm
Also refer the BLOB Download Format Mask :
{message:id=9716335}
Here I have given the format mask for APEX 4.0, which will slightly differ for 3.2.1 and proposed changes
in the format mask are:
1) Format Mask: DOWNLOAD
2) Content Disposition: Inline
This will be achieved with it:
>
But now, my user would like to know if it´s possible that APEX application can OPEN some of these files stored on this BLOB column WITHOUT download it.
My user would like to see a hiperlink (or button) that, if pressed/acessed, can open a new page (or a page inside application) with the document. He doesn´t need to edit this oppened file. He only wants to see it.
>
Hope it helps!
Regards,
Kiran

Similar Messages

  • How to open pdf document in other window by using java script

    Hello All,
    I am working in R12 Application.
    My jdeveloper version is 10.1.3.3.0.3
    I want to open pdf document in other window on clicking the button
    for that i have written following code in process request of the controller:
    pageContext.putJavaScriptFunction("doFilterSwitch", "function doFilterSwitch(){window.open('/t01/oracle/TEST/inst/apps/TEST_appsdev2/logs/appl/conc/out/545042.pdf'); }");
    OAButtonBean moHelp =(OAButtonBean)webBean.findChildRecursive("Download");
    moHelp.setOnClick("doFilterSwitch()");
    but when i hit download button it gives me the below error:
    The webpage cannot be found
    HTTP 404
    Most likely causes:
    There might be a typing error in the address.
    If you clicked on a link, it may be out of date.
    What you can try:
    Retype the address.
    Go back to the previous page.
    Go to and look for the information you want.
    More information
    please help me out
    Regards,
    sheetal

    Instead of giving the link in Process form request, give the link directly in Destination URI property of the button and in target property write _blank.
    Note : use normal button not submit button

  • How do you get documents (and other links) to open in Safari?

    I have a website that I use for school and there are course documents and such that I would like to open right in the Safari window, but Safari always downloads them. I know that they can be opened in the same window, but I can't figure out how to get Safari to do it.

    Most modern Web browsers can only "open" a few file extensions. Some are .html, .htm, .asp, .php and .txt.
    Most software create file extensions at saving. Some users choose to "hide" the file extension from the file name and rely on "icons" to decide which app will open them.
    So. What does a person have to do to get the browser to open the file?
    Example: Microsoft Word creates .doc file extension files and they will always be downloaded in a browser.
    TextEdit can create .rtf (Rich Text Format) or .txt (Text) file formats. The .rtf will download but a .txt file can be displayed by a browser.
    Microsoft Word can also save a file as .html and it will be viewable in a browser (as long as all the support and image files are inside the same folder).
    What is the application that makes the files? What save as (export) options does it allow?

  • How to reinstall World Book and other bundled apps

    Hi all,
    I'm trying to free up some hard disk space on my iBook in order to be able to store more digital photos. As I rarely use World Book, Marble Blast Gold and Garage Band, I'm thinking of deleting those applications.
    However, I'd like to know if they can be reinstalled if I choose to do so at a later date with the DVDs that came with the iBook.
    Thanks
    12 iBook G4,1.2 GHz, 30 GB HD, 768 RAM   Mac OS X (10.4.9)  

    Hi Lutetia,
    Yes, all applications that came pre-installed on your iBook can be re-installed using the disk(s) that came with it. See This Article.
    Whilst deleting GarageBand you might also like to delete the supplied loops in HD/Library/Application Support. I deleted mine so long ago I can't remember how big the folder is but it's in excess of 1GB. From memory, World Book has a large file in Application Support too.
    Printer drivers are another space hog and can be found in the HD/Library/Printers folder. You can safely delete any named drivers that you don't have a printer for. For example, if you have a Canon, you can remove Epson, Lexmark, Hewlett Packard & Brother drivers. Epson alone takes up close to 1gb. You can even remove specific drivers from within the manufacturer's folder. For example, if you have an Epson C86 you can safely trash any other specific drivers in the Epson folder like C46, C66 etc. If, at a later date, you buy a printer whose driver you removed they can be added from your install disk, the disk that comes with the printer or downloaded.
    A word of warning: More cautious heads than mine advise against messing in the HD/Library, but if you stick to the examples above, i.e. GarageBand loops, World Book and printer drivers you will be OK.
    You might also like to consider removing Language Support files if you have no need for other languages. This can be done using Monolingual. Heed the warnings on the site, i.e. Don't remove English or American English, or other languages that you have a use for. They can't be reinstalled without reinstalling the OS.
    Last but by no means least, when you have finished dumping your unwanted stuff in the trash, don't forget to empty it. You haven't regained the space until you do
    …and definitely last this time: If in doubt leave it alone and ask!
    Have fun,
    Adrian

  • How to open multiple folders and read file?

    Hello,
    I try to use this bridge script. The script work very well for me but some times I have multiple folders.
    Now script work that:
    1. Read file in folder
    2. Save text file and show me popup with full quadrature
    http://forums.adobe.com/message/3996179?tstart=56
    1. Open folder
    2. Read file
    3. Close folder
    4. Read next folder
    5. Read file
    6. Close folder
    7. ....
    8. Save text file with all folders and show me popup with full quadrature
    Please help!
    Best regards.

    Lightwave wrote:
    I don't think you guys are hearing my question. I can see how to restore a single file or folder.
    I want to restore ALL the changed or deleted files and folders since my last backup (but not the entire disk, that would be unnecessary)
    Were all (or most) of the items in, say, your Documents folder, or your Music folder? If so, you can restore the whole folder via TM. That will put all sub-folders and files back exactly the way they were at the time of the backup. You just have to be careful to pick the right backup (date & time).
    Or, if they were scattered through your Home Folder, you can restore that entire folder in the same way.
    If you've made changes subsequent to that backup, however, they will be lost in the process. What you can do in that case is, restore to a different location, then compare the two folders, and drag & drop what you want. (To restore to a different location, select the folder in TM, then click the "gear" icon in the TM Finder window, and select +Restore <item selected> to ...+ and you'll be prompted for a restore location.)

  • Firefox crashes when opening PDF, Word and other files

    Recently, Firefox stopped being able to open PDF files within the Firefox program. It crashes whether one tries to have it open the file or just download it. The same occurs when trying to open a Word doc. It does this in safe mode too. Since I am studying for a college degree and use these features a lot, I've had to stop using Firefox. This is a problem, because my university uses Firefox for its classes and other programs aren't as compatible. I've tried EVERYTHING suggested on line, both in Firefox help pages and in user pages. Nothing works.

    Fix the [http://browser.iyogi.com/firefox/firefox-not-opening-pdf.html '''PDF not opening in Mozilla Firefox'''] issue by reinstalling Adobe Reader. You need to uninstall Adobe Reader and re-install it to get the issue fixed. It is important to uninstall all versions of Adobe Reader that you may have in your system. Also, take care of installing the latest Adobe Reader for the browser.

  • How do I delete Firefox and other files from my MacBook Pro computer

    I want to remove Firefox and all other files that may not be removed from my MacBbok Pro laptop.
    MAcBook Pro, 17inch, 2.4GHZ. Processor 2.6 GHz Intel Core 2 Duo.
    PLease tell me how to do this. Thanks.

    I don't know how Firefox installs, but if you just dragged it into the Applications folder, you can drag it to the Trash and empty it.
    If it had an installer, then you need to use the uninstaller provided by the developer.
    What are the other "files that may not be removed?" It doesn't sound like much of a good idea.

  • How to import image, html and other files into your siteroot

    Hi!
    I teach basic web development at a highschool. They've been
    using GoLive before I came along and they all stuggle to adapt and
    understand why DW doesn't support a simple "add" or "import" files
    within the program.
    And frankly neither do I. For most user new to DW the
    intuitive way to add files to the root folder is to:
    -Right click the siteroot window (files tab) > add files
    -File menu > add/import files
    All of these could easily make a duplicate html, png, rar or
    whatever file and put it into the site root without leaving the
    application. Just a simple adjustment to make life easier for all
    DW rookies.
    Dont you agree?
    Well, until anything changes, the fast way to control your
    siteroot folder is still outside DW and in your files/folders of
    your OS, right? Or drag and drop files into the site root also
    works great.

    > and they all stuggle to adapt and understand why DW
    doesn't
    > support a simple "add" or "import" files within the
    program.
    It doesn't need it. Just copy the files into the root folder
    and DW will
    see them.
    > Dont you agree?
    No.
    > the fast way to control your siteroot folder is
    > still outside DW and in your files/folders of your OS,
    right?
    Yes - but you can do it all inside DW too. Note that at the
    very top of
    your site list in the Files panel you have access to
    everything on your hard
    drive.... You can copy and paste from that.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Heffalompen" <[email protected]> wrote in
    message
    news:gcnpls$98q$[email protected]..
    > Hi!
    >
    > I teach basic web development at a highschool. They've
    been using GoLive
    > before I came along and they all stuggle to adapt and
    understand why DW
    > doesn't
    > support a simple "add" or "import" files within the
    program.
    > And frankly neither do I. For most user new to DW the
    intuitive way to add
    > files to the root folder is to:
    >
    Right click the siteroot window
    (files tab) > add files
    > File menu > add/import files
    >
    > All of these could easily make a duplicate html, png,
    rar or whatever file
    > and
    > put it into the site root without leaving the
    application. Just a simple
    > adjustment to make life easier for all DW rookies.
    > Dont you agree?
    > Well, until anything changes, the fast way to control
    your siteroot folder
    > is
    > still outside DW and in your files/folders of your OS,
    right? Or drag and
    > drop
    > files into the site root also works great.
    >
    >

  • How to extract the contents of ZIP file stored in oracle database column ?

    The file is in ZIP format and it is stored in BLOB databse column . The contents of file is in binary format .
    How to extract those contents from file and thus creating the same ZIP file as output in ODI ?
    Thanks
    Arun

    Perhaps you can something like what is described in the support note "How To Load A PDF File Or Other Binary Files To a BLOB Column From ODI (Doc ID 1412753.1)"

  • Going to do a reinstall of Leopard - how do I handle iTunes and other files

    I am going to do an erase and install of Leopard. How do I save iTunes where I don't lose the rights? I have Mail, iCal and Contacts synched so that takes care of those programs. Any other suggestions?

    Back up the song files or the entire folder in the Users folder with the house icon, and choose Deauthorize Computer from the Store menu in iTunes prior to reinstalling Mac OS X.
    (30805)

  • How do I delete photos and other files from icloud?

    I'm very new to Apple and despite what my son says I do not find it intuitive - perhaps that's my age! But I've tried to find the answer to this from Apple Support, but haven't succeeded. Can I manage what is stored in iCloud, in particular, can I delete photos from it?

    MandT
    Just a quick reminder than when you delete items from contacts on your IPAD then they are deleted on all other devices connected through that Apple ID.
    It would be good to sort out what you are "syncing" and what you are storing on iCloud.
    "Measure twice.. cut once"

  • How to read Archive.msf and .sbd files stored on backup media without restoring to current profile?

    I have stored extensive Archived e-mail files on back-up media in order to release hard disk memory. How can I read selected Archive.sbd and Archive.msf files without restoring them to the current profile? Can I create a new profile and restore them there temporarily?

    follow this link:
    https://addons.mozilla.org/en-US/thunderbird/addon/importexporttools/

  • How to publish XML document whose source is stored in clob column

    I have to create simple application:
    in one table are stored some information about XML documents (date of creation, etc.) and the document source itself in one (unfortunatelly clob type) column.
    The point is to anable users finding document(s) and viewing it.
    Using forms I can search and display information about documents. But I have no idea how to publish XML document whose source is stored in clob column.
    I am using Oracle Portal 3.0 on NT.
    Thanks in advance.

    Hi Sergio,
    This link might be helpful:
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm
    Also refer the BLOB Download Format Mask :
    {message:id=9716335}
    Here I have given the format mask for APEX 4.0, which will slightly differ for 3.2.1 and proposed changes
    in the format mask are:
    1) Format Mask: DOWNLOAD
    2) Content Disposition: Inline
    This will be achieved with it:
    >
    But now, my user would like to know if it´s possible that APEX application can OPEN some of these files stored on this BLOB column WITHOUT download it.
    My user would like to see a hiperlink (or button) that, if pressed/acessed, can open a new page (or a page inside application) with the document. He doesn´t need to edit this oppened file. He only wants to see it.
    >
    Hope it helps!
    Regards,
    Kiran

  • File Open Issues - document library pdf file to open in new browser window

    Hi
    I have a requirement to open the document library containing pdf file to open in new browser window. So far I have tried following steps but could not get it to work.
    1. Changing Document library advance setting to open the document in browser (have tried others as well).
    2. SharePoint web application setting changed as Permissive instead of Strict. Here the pdf file opens in browser but redirect from document library instead of new window(Also tried adding Target=”_blank” and no change).
    3. Executed the powershell script to adding MIME type to see if it works but no change.
    $webApp = Get-SPWebApplication http://SharePointSite
    If ($webApp.AllowedInlineDownloadedMimeTypes -notcontains "application/pdf")
    Write-Host -ForegroundColor White "Adding PDF MIME Type..."
    $webApp.AllowedInlineDownloadedMimeTypes.Add("application/pdf")
    $webApp.Update()
    Write-Host -ForegroundColor White "Added and saved."
    Else
    Write-Host -ForegroundColor White "PDF MIME type is already added."
    4. Open the Doc library and modified ALLItems.aspx to add Target= “_blank”
    5. I have already tried solutions suggested in the link:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/9db08c4a-b53c-419a-84f8-001c194d1311/how-to-open-sharepoint-document-library-pdf-file-in-new-window?forum=sharepointadminlegacy
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/530e2ea1-d77d-491c-935f-04f536e439a5/open-a-pdf-document-to-a-new-browser-in-the-document-library-web-part?forum=sharepointadminlegacy
    http://mindsharpblogs.com/todd/archive/2005/08/16/654.html
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/7b6091df-4657-4799-ba02-259ebd7e4b7c/pdf-doesnt-open-in-document-library?forum=sharepointadminlegacy
    Appreciate if there are any working solution from any of you. Many Thanks

    I found a solution which works only in the development. No idea when I compared, Browser MIME type is enabled, STRICT browser type is configured for web application. on the document library advance setting, default to open in new browser. Both configurations
    are identical but I am able to open pdf file in new window in my developing using jquery script
    http://blog.ithinksharepoint.com/2011/02/21/open-pdf-files-from-a-document-library-in-a-new-window/ but the same does not work on production server :(
    Any help experts?
    Thanks

  • To open a Excel and Doc file inside the AIR application

    How to open a Excel and Doc file inside the AIR application.  I have opened the PDF file inside the AIR application.  But i got stuck in opening the Exce and Doc file.  Please help me in this issue.

    AIR does not support this inherently. However, you could write code to parse these file formats. For example, the following is an ActionScript 3.0 library for reading and writing Excel files:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1375018

Maybe you are looking for

  • How do I connect my Time Capsule directly to the internet cable from the wall?

    My Time Capsule only works if I connect it to my wireless router with a LAN cable. But, when I plug the cable from the wall directly into the Time Capsule, it just blinks orange. What am I not doing right?

  • Oracle 8.1.7 on Solaris 8

    hi everyone, I am totally new to Oracle ... just finished installation of Oracle 8.1.7 on Solaris 8 .. the automatic database creation step failed for some reason. Now when I try to use dbassist to create a new database, I get an ORA 03114 error "not

  • Only starts up in Windows Vista does not start in Tiger

    I've got a Macbook Black running on Tiger and I've also got Windows Vista running thru boot camp. Last night I was running Tiger fine. I did get a msg telling me my startup disk was almost full. I didn't have the time to delete some files to make spa

  • PROFORMA INVOICE in Business One

    Does anyone know if Business One 2005A SP1 or any other versions of SBO ever supported Proforma Invoices? I did find some old SBO 6.4 powerpoints, but they were specific to Italy. If anyone knows, please let me know. Thanks, Regis

  • Standby redo logs status

    Hi, I see following status from my standby redo logs SQL> select GROUP#, status from V$STANDBY_LOG; GROUP# STATUS 5 UNASSIGNED 6 UNASSIGNED 7 UNASSIGNED 8 UNASSIGNED What could be reason for this.