APEX - opening World document (and other files) stored in a blob column?

Hello

I have an application developed in Oracle Apex 3.2.1 and RDBMS Oracle 9.2.0.8 (SUN SOLARIS SPARC 64-BIT).

I have a table called BAC_ARQUIVO, with the following structure:

CREATE TABLE BAC_ARQUIVO
(NAME VARCHAR2 (4000), / * name of the file stored in a BLOB column * /)
TOPIC VARCHAR2 (4000), / * a brief presentation of this file stored * /.
Identification NUMBER, / * an identification of this file - it s a PK of this table column * /.
BLOB BLOB_CONTENT, / * Blob field to store different types of files - XLS, DOC, PPT, PDF, EXE, ZIP, etc.) ;
Mime_type VARCHAR2 (4000) / * Identification whose file type is stored in BLOB field * /.
)


The field BLOB_CONTENT in this table can store:

-Executable files;
-MS-world Documents (DOC);
-Zip Files (ZIP).
-Ms-Excel (XLS) files;
-Ms-Powerpoint files (PPT);
-Adobe (PDF) documents.

In fact, in this application, APEX, I developed an interactive report in which the user can download these files to the desktop without problem.

But now, my user I would like to know if it s possible ask APEX can OPEN some of these files stored on this download of WITHOUT BLOB column.

My user would like to see a hiperlink (or button) that, if you press on/accessed, can open a new page (or page within the application) with the document. Doesn´t need to edit this file oppened. He wants only to see.

For example, if the file stored in the blob column is type ms word, so the application opens an MS-WINDOWS application with these files.

Is this possible?

In this forum, I saw this it possible s to open a file stored on the directory "/ i /", but I need to open the file stored in the BLOB column. I Don t want to store the file in the operating system of the server.

Could someone show me how it could be done?

Best regards

Sergio Coutinho

Hi Sergio,

You might find this link useful:

http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/DB/Apex/R31/apex31nf/apex31blob.htm

See also the Mask of Format download BLOB :

{message: id = 9716335}

Here I gave the format mask for APEX 4.0, which will be slightly different for 3.2.1 and proposed changes
in the format of mask are:
(1) mask format: DOWNLOAD
(2) content-disposition: Inline

This will be achieved with her:
>
But now, my user I would like to know if it s possible ask APEX can OPEN some of these files stored on this download of WITHOUT BLOB column.

My user would like to see a hiperlink (or button) that, if you press on/accessed, can open a new page (or page within the application) with the document. Doesn´t need to edit this file oppened. He wants only to see.
>

I hope that helps!
Kind regards
Kiran

Tags: Database

Similar Questions

  • Cannot find the left column that used to be on the documents and photo files.

    Cannot find the left column that used to be on the documents and photo files. On this missing column I know was there before, had options fax, copy and other things we could do with these files. I want to get that back. Thank you.

    With my Documents folder open, go to Toolsand then click on Options files . On the general tab, tasks section, choose Show tasks in folders.

    I would like to know if it works. Thank you.

  • Unknown user account has taken control of many documents and media files. How to remove this user.

    We created an unknown accout on my laptop Windows 7 did it probably a malware or some kind of virus. This unknown account took all permissions including the special permission. In this way, he blocked my access to a lot of my documents and multimedia files. This unknown account does not appear in the list of user accounts. Thus, it cannot be deleted or modified/restricted. I tried to detect this virus/malware microsoft security essentials and MacAfee antivirus programs. The two could not detect something. Any help?-ERC

    Hi CED,.

    Thanks for posting in the Microsoft Community.

    I'm sorry to know that you are facing a problem of unknown account. It would be useful that you can answer these questions to help you further.

    1. How do you know that it is an unknown account? You receive messages or error codes?

    2. where are the documents and multimedia files stored?

    3. have you made a recent software or hardware changes to the system?

    If you are referring to an unknown account with a SID string, then try these steps and check if it helps.

    a. go to the folderwhere you saw this string SID.

    b. right-click and select Properties. Click the Security tab.

    c. If it is there, then click on the Edit button, then click the Remove button.

    If you are told that you cannot delete this account because it is to be inherited, and then close the dialog boxes and set up a folder in the tree and repeat the procedure. Keep this up until you can remove the ""unknown account " SID in the permissions dialog box."

    You can also check the suggestions provided by Marilyn O, moderator of the Forum on July 9, 2012 and check if it helps.

    How to remove an unknown account on the Security tab in windows 7?

    Important: The above link contains steps to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs.

    For more information, you can view the article:

    Back up the registry

    I hope this helps to solve the problem.

    If you need further assistance, please answer and we will be happy to help you.

  • There was an error opening this document. The file is damaged and cannot be repaired.

    Greetings,

    I searched the forums, and this mistake has been examined in the context of how to treat a damaged PDF file.

    My question is a little different. The company that I am working has a tool to create what we call "knowledge base articles", i.e. product XML authoring with us help topics. They used this tool from 2008. Files can be attached to a topic. The XML files and attached PDF files is stored in a SQL database. Using the TOC Panel or the search function, relevant topics are retrieved.

    When there is an attached PDF, users can view the PDF in the browser or download the file and open it locally.

    The knowledge base has been moved from an environment of database SQL 2005 in Windows Server 2003 and IIS 6 for an environment database of SQL 2008 R2 to Windows Server 2008 R2, IIS 7.

    Now that we have the following problem: in some subjects the downloaded PDF can't be opened and one error

    "There is an error opening this document. The file is damaged and cannot be repaired. "is displayed. The curious is that some PDF files published this error, while others open without a problem. Source file all PDF files open without a hitch before they are downloaded.

    Any advice or pointers would be very appreciated.

    TIA, Donna

    Donna,.

    as you have probably read in a lot of discussions on this matter, this error message is usually correct, and the PDF file is damaged. As for how it gets damaged, it's something you need to know by poking around in your system. Here are a few general things that always apply when working with corrupt files:

    The first thing I would do is open such a file corrupted in a text editor such as NotePad to see what it actually contains. Any valid PDF file must begin with '% PDF -' followed by a version number. If you don't see that in the first line, then you are not dealing with a PDF file and you know why you do not get the file saved in your knowledge base.

    If this string is there, then you know that there a PDF file and the issue is somewhere in this file, and is where it gets much more complex. You will need a good understanding of the PDF specification to parse the file to see what is wrong with him.

    If you're lucky, you'll actually have a file of length zero (which means also no PDF header). No valid PDF file cannot be zero bytes long. Your second chance case would you find in fact an HTML error in this file (instead of PDF content), that tells you the reason for the problem (but again, this depends on your system).

  • I use Adobe Reader and Adobe Acrabat (If Yes, there is difference) and I have been a Sony tablet. I use a PDF file as a lesson plan, normally to just open the document and it moves automatically to 'recent' in 'my documents '.

    I use Adobe Reader and Adobe Acrabat (if there is no difference) and I have been a Sony tablet. I use a PDF file as a lesson plan, normally to just open the document and it moves automatically to 'recent' in 'my documents '. But when I close this document in particular I need to find it in my downloads and open again in Adobe, but the changes I made are not here obviously? How can I move an item in the recent myself? Help, please!

    Hello

    What is the operating system on your Sony Tablet?  Windows or Android?  What is the version of the operating system?

    Your documents are stored on your device or on the cloud (Cloud Document Adobe, Adobe Creative Cloud) storage.

    Please note that the recent section displays the local and cloud the documents you have open/read recently.  Player does not physically move/transfer local or documents to the recent Division of clouds.

  • Why finder hide Documents and office files in the home directory of the user by activating iCloud drive? What about the behavior of Time Machine backup or third-party applications?

    I'm under MacOS Sierra. I am connected to my iCloud account. I activated the option Desktop and Documents, but I did NOT activate the option optimize Mac storage, because I wanted to make sure that all my files would be available locally, just in case, I would need to work without an internet connection.

    -J' noticed there now a menu iCloud in my sidebar in the Finder, with links to Documents and desktop.

    -J' also noticed that Documents is no longer presented in my favorites in my side bar of the Finder.

    -This last suggests that files saved in 'Documents' are not saved more on my HD... but only in iCloud, which isn't what I want.

    -Then, sailing in the Finder Macintosh HD/users / 'My account' /, I noticed that my Documents and desktop folders are more visible, as if these files are not saved in my home folder most. Which raises the question: where are My Documents and files on my HD, so they are still?

    -Using a shell session in the terminal and again navigate to/Users / 'My account' /, I noticed that my Documents and desktop folders are still there. Which suggest that records and records of office reside actually still in my home folder under users, but Finder actually hide it and present them as being stored in iCloud only disc. It's very confusing.

    This raises several questions:

    -In the first place, why Apple hide Documents and office files in the directory? Why not view these folders in iCloud and directory?

    -Whence the iCloud folder or drive, reside actually on my hard drive?

    -What time Machine. Is it still back up my document files and folders?

    -What games third-party app mirroring backup of My Documents files and folders? They still work properly? (I use Livedrive backup and Sugarsync for files mirrored across several macs).

    -How can I understand that Apple is doing with my folders and files? Some users might be happy with the iCloud drive concept, without worrying about how it works, but I don't take chances, and I want to keep a good understanding about the functioning of my system.

    Could someone explain what is exactly happening?

    With office and selected Documents, access to these files are now in the iCloud Drive, not in your home folder.

    My guess would be that they do not appear in your file because it would be confusing for many people to make them in two places.

    If you want in the Favorites, open iCloud Drive and drag them in the sidebar here.

    All about iCloud drive has been saved on your Mac. With the exception of the office and the Documents, they are in ~/Library/Mobile Documents. However, if you choose optimized storage, older documents are removed from your Mac. I don't know what is "old".

    ~/Documents and ~/desktop have new metadata indicating probably Finder does not display them in a Finder window, only in iCloud drive. They are not hidden in one of the normal methods of unix.

    I have not tested Time Machine or any other backup program. The folder still exist in your directory home, and they still have all the files, I don't think that changes anything.

  • I can't open the documents and photos from the emails that I receive. The Microsoft Essentials antivirus is the problem?

    I can't open the documents and photos from the emails that I receive. The Microsoft Essentials antivirus is the problem? How can I fix it?

    E-mail address is removed from the privacy *.

    Hello, end of file.     PPS Finally today its opening.

    I have incredimail and use ' openoffice.org because I don't have any power point.

    Thank you for your help.

  • I can't open a pdf file of network.  I get the error, "there was an error opening this document. This file is not found. "If I copy it to the desklop can I open it.

    I can't open a pdf file of network.  I get the error, "there was an error opening this document. This file is not found. "If I copy it to the desklop can I open it.

    I have Adobe Acrobat XI version 11.0.12 and running windows 8.1

    Hi brianh66664582,

    Try the solutions suggested in this thread Re: could not open the files on the network server..

    Kind regards

    Nicos

  • Adobe Acrobat - 'there was an error opening this document. The file is not found.

    Guys,

    I have a virtual layer to Adobe Flash player, with a point of entry to Internet Explorer. Apart from that, we used Thinreg to associate pdf files with a Thinapp copy of the Adobe Acrobat Reader 7 (using the allusers switch). We find that, while trying to open online pdf files, Acrobat Reader load then shows the error "there was an error opening this document. The file is not found. If we save the file and open it works very well.

    I am positive that it is a problem of isolation somewhere in the config layer of Acrobat Reader, but have not been able to track it down. It is probably that the Acorbat layer not looking outside of himself for the temporary internet folder that contains the pdf file that IE has cached?

    Everyone falls on something similar and has a solution?

    Matt

    Try to set the modes of insulation for your temporary folders (%temp%, % internet cache) merged to your package of IE. In addition, in our environment, we put % internet merged cache%/contents.is5. Not sure if it makes a difference.

  • My computer slowed to a crawl. It is very difficult to open internet explore and other web sites that I do?

    trouble opening explorer, google and other web siteis I need to speed up computer On the desktop high explore takes a long time to open and others

    Hi Allan,

    ·         You have the latest updates of Windows installed?

    ·         The computer is updated with the latest drivers for the device?

    You can check if the following is useful.

    Increase the speed of the PC: optimize your computer, help your PC run faster

  • I want to restore my laptop on 26 Oct 27, I did a system restore back up and lost all 'my documents' and personal files.

    I want to restore my laptop on 26 Oct 27, I did a system restore back up and lost all 'my documents' and personal files. Cannot return to a permeable date as its non bold on the calendar except Oct. 27, when I made the changes. HELLP

    Try

    http://www.Piriform.com/Recuva

    and

    http://www.EASEUS.com/download.htm

    If this post answers your question, click mark as answer .

  • Ive needs to open a document and it says that I need the most recent version. IM the 11.0.09 running on windows 7 help!

    Ive needs to open a document and it says that I need the most recent version. IM the 11.0.09 running on windows 7 help!mycic error adobe.png

    Ive followed the link several times and updated to the latest version, what I am doing wrong?

    Hi stuartosachuk,

    Type chrome://plugins in the address bar of Chrome. Then, disable "Chrome PDF Viewer" and select "Adobe Reader" plug-in as shown in the screenshot below:

    Now, close the Plug-ins tab and restart Chrome.

    Kind regards

    Ana Maria

  • Stored in the BLOB column display PDF problem

    Hello everyone.

    I tried to follow this tutorial http://asktom.oracle.com/pls/asktom/f?p=100:11:0:p11_question_id:232814159006 on the display of PDF files stored in BLOB columns. This is done on Apex 4.2, with my DB 11 g running. I have my procedure, which I will 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 region dynamic PL/SQL, and even if I don't get any error, the content displayed is a huge mess of truncated text and strange characters. I tried to run this procedure on many other types of documents, including word and jpeg image files, all with the necessary changes in my inside, and regardless of what I use, I always get a big mess of strange characters. Does anyone have information or ideas why this is happening?

    If I understand correctly, your needs must be broken down into two problems:
    1) click the link that opens a window showing a new APEX page
    (2) an APEX page displays the document, download it not.

    I did not (yet) #1.
    However, you can generate a URL that points to the new page in the select for the report.

    It's a related issue, but no response yet:
    Open the pdf file in the browser window

    The key is to target = "_blank" to the anchor tag.
    To generate the URL, you must use the APEX_UTIL.prepare_URL () function.

    If this does not work, a dynamic Action that makes magical things of JavaScript may be necessary.

    # 2, I lost the URL that showed how to display a PDF file in a page "form.
    From what I remember:
    Start with a blank page with a pristine area of HTML (all items will in the HTML area)
    Add an element to the PK/annual
    part I forgot Create a Data Manipulation process
    -Automated row Fetch
    -By loading - after the header
    -(stuff for your table/view)
    part I forgot Create a (I think) "File browser" item type. For the parameters:
    -Storage of Type "BLOB column specified in the Source element" (and put the name of the BLOB column)
    -MIME Type column: (column name) - since there are several types, this is a MUST HAVE
    -Filename column: (column name) - I highly recommend you have this.
    -Provision of content is INLINE<-- this="" is="" the="">

    In addition, you will need a browser for each of the Types MIME Plugin (if not, the browser may try to "Download" the file)
    Browsers can manage the types of images internally. Plugin Adobe can handle PDF files. I do not know Word/Excel.

    Yet once again, I don't remember the exact details, but that should cover most of it.

    MK

  • Error opening this document. The file is damaged and cannot be repaired.

    I use Reader 9.1.3 and trying to open this pdf file: http://www.xilinx.com/support/documentation/data_sheets/ds162.pdf and got the error in this message. Other people have been able to open this document, so I don't think that the file is damaged. Any ideas?

    Clear the cache of your browser and try to re - download the file.

  • Update and now the documents, pictures and other files are removed__

    Hello

    I clicked on install windows update on my computer (vista) and after he finished to install my documents, pictures and various other files have disappeared.  The hard drive shows again the amount of data I had, but all the files are not in the same place.

    What can I do to get back them!

    Help, please.

    Thank you

    Control Panel > backup and Restore Center > repair with system restore

    That's what I had to do to fix my computer. I lost Aero and my computer just went completely wrong. I had to do a system restore to get it back.

Maybe you are looking for

  • Update iphone 6s at ios10, taken helmet collapsed work

    Hello I use iphone 6 s 64 GB of 5 months, recently I updated to ios10. After updating, my headphone jack is not working properly, my apple headphones work perfectly (checked with other devices), or even phone detects the headset, but they do not work

  • I see my modules installed when you start in safe mode?

    Hello I just want to know if I should be able to see my installed modules / extensions when I start firefox in safe mode. I will or I don't...? Thank you Alex

  • IdeaPad U410 wireless compatibility

    Hello world I am looking for information on the wifi cards supported for laptop U410. If anyone has a list, or a few ideas about this please let me know. Thank you! Kind regards R.

  • My mobile phone download

    I download my contacts from mobile phone, email address to my pc have already imported photos. Am following the instructions in the manual of my phone and photos to import icon rises. I'm using one of these imports to download my content from my phon

  • Is it possible to use 'mobile' in the URL instead of "phone" on the mobile version of the site?

    What I mean is if you do a google search on your mobile phone the given URL is:whateverurl.com/Phone/pagenameCan it be replaced by:whateverurl.com/mobile/pagenameMuse creates a directory named 'phone' when it exports the mobile version of a site.I do