Storage of MS-Word and PDF documents in the database that is downloaded through APEX

I want to enable users to download MS-Word and PDF documents that they created / edited outside of the app to the APEX for storage in the database with other data in the app.

I know that I should use a queue item browse an area for this purpose.
I have a few questions:
1. what type of database data is best for storage of MS-Word and PDF docs? CLOB?
2. How can the user see that the file has been downloaded? In other words, how can they see the name of the file has been downloaded? I want to show this on the page for later viewing. I downloaded a document, but later, I have no way to see that the document has actually been downloaded. On the page of the APEX, the browse file evidence not whether or not a previously downloaded file.
3. how the user can download the previously downloaded?
4. is there a way to give users the ability to edit a document in an APEX application where they can do the editing of type MS-Word (the font size, type of font, bold, italic, etc.)?

I know I ask myself a lot here and I appreciate your comments.
-Reid

In my case, I am downloading screenshots of my application and then display them. You can feel free to use it if you want, the code has been taken for most examples of downloads of files sent by others. Here is a code to help you get started:

Description Table file

CREATE TABLE FILE_UPLOAD
   (name           VARCHAR2(4000) PRIMARY KEY,
    subject        VARCHAR2(4000),
    id             NUMBER,
    blob_content   BLOB,
    mime_type      VARCHAR2(4000),
    PAGE_ID        NUMBER);

How to download file

IF ( :P20_FILE_NAME is not null ) THEN
     INSERT INTO FILE_UPLOAD (id, NAME, SUBJECT, BLOB_CONTENT, MIME_TYPE, PAGE_ID)
      SELECT ID,:P20_FILE_NAME,:P20_SUBJECT, blob_content, mime_type, :P20_PAGE_ID
            FROM APEX_APPLICATION_FILES
            WHERE name = :P20_FILE_NAME;
   DELETE from APEX_APPLICATION_FILES WHERE name = :P20_FILE_NAME;
  END IF;

Download Image definition of the procedure

CREATE OR REPLACE PROCEDURE download_my_file(p_file in number) AS
        v_mime  VARCHAR2(48);
        v_length  NUMBER;
        v_file_name VARCHAR2(2000);
        Lob_loc  BLOB;
BEGIN
  SELECT MIME_TYPE, BLOB_CONTENT, name,DBMS_LOB.GETLENGTH(blob_content)
         INTO v_mime,lob_loc,v_file_name,v_length
    FROM FILE_UPLOAD
   WHERE id = p_file;
    --
    -- set up HTTP header
    --
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
  owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );

    -- set the size so the browser knows how much to download
  htp.p('Content-length: ' || v_length);
    -- the filename will be used by the browser if the users does a save as
  htp.p('Content-Disposition:  attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
    -- close the headers
  owa_util.http_header_close;
    -- download the BLOB
  wpg_docload.download_file( Lob_loc );
end download_my_file;
/

don't forget to grant rights of procedure for the use by any person

GRANT EXECUTE ON download_my_file TO PUBLIC

Display Image definition of the procedure

create or replace PROCEDURE "DISPLAY_IMAGE"
(
  inID NUMBER
)
AS
  vMIME VARCHAR2(48);
  vLENGTH NUMBER;
  vFILENAME VARCHAR2(2000);
  vBLOB BLOB;
BEGIN
  SELECT MIME_TYPE, BLOB_CONTENT, NAME, DBMS_LOB.GETLENGTH(BLOB_CONTENT)
    INTO vMIME, vBLOB, vFILENAME, vLENGTH
  FROM FILE_UPLOAD
  WHERE ID = inID;
  owa_util.mime_header(nvl(vMIME, 'application/octet'), FALSE);
  htp.p('Content-length: ' || vLENGTH);
  owa_util.http_header_close;
  wpg_docload.download_file(vBLOB);
END;
/

Again, ensure that everyone has rights to execute the procedure.

GRANT EXECUTE ON DISPLAY_IMAGE TO PUBLIC

This does not create an editor in the browser, it simply creates a process simple upload/display. For a WYSIWYG editor that manages the PDF format or doc, you need something much more sophisticated, and I can't propose something here.

Tags: Database

Similar Questions

  • can I sync my microsoft word and PDF files on my palm?

    I'm new to the family of Plam and I have a question.  I use my Palm for bussiness because I can't do most of us, but can I sync my microsoft word and PDF files in my Palm?

    I use the contract all the time and I need to show a contract from time to time, I don't know how to synchronize those files on my palm... is the windows mobile palm?

    If I could get as much information as possible on all the how of that would be great!

    Thank you and I have a lot of aprecaite it!

    Paul

    Hey Paul, welcome to the forums of Palm.

    Your Verizon Pre Plus runs a mobile operating system called webOS HP/Palm.  The current version is the 1.4.5.  The phone can connect to a Microsoft Exchange Enterprise Server.  When this happens, it uses a timing called "Exchange Active Sync" technology, but your phone does not have the operating system Windows Mobile or Windows Phone.

    Synchronization of Microsoft Office and PDF documents from sort of an adventure the Pre debuted more than 18 months ago.

    DataViz, the application of the notice of Doc officials, was partially acquired by RIM, the fact of BlackBerry and decided to not release a full version of Documents To Go for webOS devices.  Palm in collaboration with manufacturers of QuickOffice to provide the full support of the office for webOS documents in the future.

    For now, if you put Office and PDF documents in the area of storage USB of your pre, see Doc or PDF is to find them and allow you to view them on your Pre.  I put all my documents in a folder simply called 'Documents '.

    If you connect the charging/sync cable for your pre and then attach to your Mac or Windows PC, you will have a choice to activate the USB Drive mode.  When you do, you will be able to work with your pre as you would with a standard USB.  Eject the meadow of your desktop PC when you have finished and you should be ready.

    Hope that helps.

    Alan G

  • I would like to combine Word and Excel documents into a single pdf file.  What tool allows me to do this?

    I would like to combine Word and Excel documents into a single pdf file.  What tool allows me to do this?

    Adobe Acrobat.

  • How can I save my word to PDF document and save it on my USB instead of online?

    How can I save my word to PDF document and save it on my USB instead of online?

    Hi imanip57749641,

    Could if it you please let me know this Adobe online service that you have subscribed?

    You may be able to connect to your account using the Adobe ID credentials to convert word to PDF file.

    After conversion, you can download and save the converted file on your computer and transfer it to the flash drive.

    You can even locate all your converted files by clicking on the "Files" tab

    Hoping to hear from you.

    Kind regards

    Ana Maria

  • Problems with word and PDF after computer crash. Error "user has access privileges."

    Problems with word and PDF after crash

    My computer crashed and I had to run the recovery disk, the repair option, so he could run again. It does not format my computer but I had to re - install several programs. I reinstalled my copy of office for example.  I have an external hard drive where I put most of my files but since installing the recovery disc, it does not open some Word documents and gives a message error "user has not access privilege." It's the same thing with some pdf files. What can I do?  Please help because I can't open some of my documents from the University.

    Hello world
    I would like to just say thank you for your help and the problem is now solved.  In the end I paid someone to sort it out.  He explained that it was something like permissions for some of my files were owned by my old operating system and after that my computer crashed and I had to put through the recovery disc these permissions have been lost.  He told me that he had a program that looked for the old existing and re-installed.
    Thank you.

  • How can I bulk convert word into PDF documents?

    I recently installed the Adobe Standard 11 in windows 7 OS. I need to convert more than 4K of word in PDF documents. I was able to convert each person opening the word document by clicking on the banner of Adobe and convert to pdf, BUT how can I bulk convert them without having to perform this task individually?

    The steps and advice would be greatly appreciated.

    Thank you in advance.

    HI nenbori,

    Why, Yes, you can do it!

    1. In Acrobat, choose file > create > create several batch files.
    2. Click Add files to add files (or a folder containing the files) that you want to convert, and then click Add.
    3. Choose where you want the PDF files to be stored and how you want the files to be named.
    4. Click OK.

    I'm not sure that you will be able to convert all 4K at a time, but you can certainly make a few batches of good size. It really depends on your operating system.

    Please let us know how it goes.

    Best,

    Sara

  • Can I pre-populate a Word or PDF document?

    This request is for a home care agency. There is an elaborate form that must be completed periodically called a CMS - 485. There are tons of fields and a lot of formatting of the document. I currently have the document in Word format.

    We keep the information for participants in a database. I would like to prepopulate SOME fields in the Word document with the information in my database. To know things like the name and address. Date of birth, SSN, etc. Basic demographic data that are available in my readilly database.

    I can generate my site in any format form, really. PDF would be perfect. Word would be perfect. My goal is to go to the customer information screen in my application (already done), and then click a button to generate a CMS-485 vacuum that is prérenseigné with the inorimation population base.

    I know that I can create an HTML element or report builder version of the report, but which would be absolutely formidable given the complexity of this form. Since it is already in Word format, I can use the work that has already been done and you easier on myself?

    BTW: CF 7.02

    In fact, we do a lot of that kind of thing. If you treat only this 1 form and know that your form will not be changed anytime soon, we have found that the simplest solution is to do something like this:

    (1) save your form in PDF format
    (2) manually build the fields in your form using Adobe Acrobat
    3) there are a number of technologies that you can use to pre-fill the PDF form fields
    A. you can create a FDF (a little outdated at this point) PostScript file
    B. a coutesy of Ben Forta's much better solution: http://www.forta.com/blog/index.cfm/2006/7/27/cf_pdfform

    Not sure to do the same thing in word. You could probably do something with java Jakarta POI package, but without doubt it would be rediculously complicated for what you're trying to do.

  • I can print Microsoft Word and Excel documents, but I am not able to print from the web. I get an error message that says: "Activation - Code 20' - error"Printer Not Activated".

    Activate printer F4580

    I run Microsoft Vista.  I have a printer HP F4580.  I can print Microsoft Word and Excel documents, but I am not able to print from the web.  I get an error message that says: "Activation - Code 20' - error"Printer Not Activated".  What should I do to correct this?

    Hello

    ·          What browser do you use to connect to the Internet?

    The error may occur if the wrong printer is set as default, the printer driver printer is missing, or if there are conflicts in Device Manager.

    Step 1: Make sure that the desired printer is set as the default printer:

    http://Windows.Microsoft.com/en-us/Windows7/change-your-default-printer

  • The document to print contains words and images.  Print the words but not pictures.  Any ideas?

    The document to print contains words and images.  Print the words but not pictures.  Any ideas?

    Have you tried "Print as Image"?

  • I have Acrobat Pro on my computer and I work with the drawing that have been digitized in PDF format. The scanners are not aligned or place because of the poor scanning process. Anyway is to align the document even if it requires me to crop or lose

    I have Acrobat Pro on my computer and I work with the drawing that have been digitized in PDF format. The scanners are not aligned or place because of the poor scanning process. Is there anyway to align the document even if it requires me to crop or lose some on the edges?

    Hi brad.

    Yes. You can use the analysis tools to straighten and crop your document. Here is a link to a new tutorial. The key to activate the sliding options recovery is to choose the option of the camera Image in the drop to Enhance, and gives you tools to set the correct page for smoothing areas.

    fundamental https://helpx.adobe.com/Acrobat/How-to/scan-Paper-documents-Searchable-PDF.html?Set=Acroba--principes t - create a pdf file

    Donna.

  • I need help! I try to open my PDF but I get this message on my Macbook Pro! "Before you display PDF documents in the browser, you must launch Adobe Reader and accept the end user license agreement, and then quit and relaunch the browser."

    I need help! I try to open my PDF but I get this message on my Macbook Pro! "Before you display PDF documents in the browser, you must launch Adobe Reader and accept the end user license agreement, and then quit and relaunch the browser." What should I do?

    Do exactly what the message says, and it will go away.

  • How to convert non-fillable forms in Word and PDF forms to fill out?

    Hai,

    How to convert non-fillable forms in Word and PDF forms to fill out?

    Hi Mahalcs

    Please check the link for the reference below: http://www.adobe.com/in/products/acrobat/convert-existing-forms-to-fillable-pdfs.html

    See also, http://www.adobe.com/content/dam/Adobe/en/products/acrobat/pdfs/adobe-acrobat-xi-convert-f ORM you in fillable pdf - tutorial_ue.pdf

  • Before displaying PDF documents in the browser, you must start Adobe Reader and accept the end-user Li

    Since two or three weeks, whenever we try to open a PDF file, we get the following message:

    Before display PDF documents in the browser, you must launch Adobe Reader and accept the end user license agreement, and then quit and relaunch the browser.  There is no link in this post, and I can't find where to launch Adobe Reader to accept this agreement.  I do not understand why we started having problems all of a sudden, but it is extremely frustrating!

    We have a Mac OS X v. 10.7 Safari v. 6.0

    Thank you very much!

    If you have installed the Adobe Reader software to the deafult location you will see in your hard drive / Applications folder.

    Try this:

    1. Quit Safari

    2. from Finder > go > go to folder... > type in the path: /Applications/ and click 'Go '.

    3. run "Adobe Reader"

    4. accept the end user license

    5. open a PDF file in Safari.

  • I have documents on the disk that were first written on Word Pad in Windows XP. I now find that I am unable to read them on my new PC with Vista Home Premium.

    I have documents on the disk that were first written on Word Pad in Windows XP. Now, I have another PC with Vista and impossible to download documents in readable format. They are obviously in a different programming language.

    Jim

    The files you have are from Microsoft Works since they. WPS file extensions.

    You have Office installed? If so, which version?

    If you have Office 2003 or 2007 or Word 2003 or Word 2007

    The following Document conversion will do the trick for you.

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=12

  • How to open PDF documents in the same window?

    Prof. Acrobat X / Windows:

    How to manage open PDF documents in the same window?

    When I open more than a single PDF docs and a second, third,... window opens, each document is opened in a separate window.

    In previous versions (Acrobat 8 Prof.), all the documents were opened in the same window.

    This is especially useful, because the windows are not spread over the entire desktop, and with ALT + TAB I can change between the documents, if I don't have that one window.

    Thanks for any help.

    This feature has been removed.

Maybe you are looking for

  • Y510P installation hides SSD

    I have my laptop the other day, and saw that the SSD was not available so I deleted and created a new partition for it, I didn't know that it was used as a cache drive... How can I put it on a disk cache? I tried to delete the partition SSD and insta

  • lack of virtual memory keeps comeing

    lack of virtual memory keeps comeing

  • Cannot open .exe files, cannot open any programs

    My computer worked fine until last night. Now, every time that I click on a shortcut, or try to open any program, I get this error: this file does not have a program associated with it for performing this action. Create an association in the set Asso

  • How can I prevent the Vista layout muted sound when I lock the system?

    In the last days Vista began muted sound of my computer when I lock the system. It did not before. I don't understand how or why it started. This has caused some applications to stop using sound altogether when I unlock the system.  I don't want Vist

  • "Default" folder of the deleted user

    Somehow my 'Default' user folder has been removed from C:\Users. This means I can create is no longer new users, as I just get the "opening of the session... impossible user profile service. "etc when I try to load the new user, because there is no p