INSERTING WORD FILE

Dear All
I have a word file with 5/6 pages of agreement typed, I want to know how to insert the word file in the table, and how to open the file from oracle forms. My table has two columns
1. purpose varchar2(100),
2. file_name blob
Thanks
Satish

What forms version do you use? if it's 10G or above, you can use WEBUTIL_FILETRANSFER for this.

Similar Messages

  • Insert Word File in Oracle 8i database

    Can any one help me to insert one MS-Word File created thru a VB Application into Oracle Table.

    Hi,
    u can use pl/sql procedure to insert doc into database
    Have a look
    store microsoft doc into oracle database by clob
    SQL> desc test
    Name Null? Type
    NO NUMBER
    FILE_DATA CLOB
    SQL> select * from all_directories;
    OWNER DIRECTORY_NAME
    DIRECTORY_PATH
    SYS DIR_FILE
    /oradata4/upd
    create or replace procedure doc_insert(file_name varchar2)
    as
    f_lob bfile;
    c_lob clob;
    begin
    insert into test (no,file_data) values
    (1,empty_clob())
    return file_data into c_lob;
    f_lob := bfilename( 'DIR_FILE', file_name );
    dbms_lob.fileopen(f_lob, dbms_lob.file_readonly);
    dbms_lob.loadfromfile
    ( c_lob, f_lob, dbms_lob.getlength(f_lob) );
    dbms_lob.fileclose(f_lob);
    commit;
    end;
    Procedure created.
    SQL> exec doc_insert('lob_case.doc');
    PL/SQL procedure successfully completed.
    SQL>
    select dbms_lob.getlength(FILE_DATA),file_data from test;
    DBMS_LOB.GETLENGTH(FILE_DATA)
    FILE_DATA
    46592
    ÐÏ à¡± á > þÿ V X þÿÿÿ U
    ================================================
    Retrive doc from oracle database
    declare
    clob_loc CLOB;
    buffer VARCHAR2(32767);
    buffer_size CONSTANT BINARY_INTEGER := 32767;
    amount BINARY_INTEGER;
    offset NUMBER(38);
    file_handle UTL_FILE.FILE_TYPE;
    directory_name CONSTANT VARCHAR2(80) := '/oradata4/upd/all';
    new_xml_filename CONSTANT VARCHAR2(80) := 'lob_case.doc';
    BEGIN
    DBMS_OUTPUT.ENABLE(100000);
    -- GET CLOB LOCATOR
    SELECT file_data INTO clob_loc
    FROM test
    WHERE no = 1;
    file_handle := UTL_FILE.FOPEN(
    location => directory_name,
    filename => new_xml_filename,
    open_mode => 'w',
    max_linesize => buffer_size);
    amount := buffer_size;
    offset := 1;
    -- READ FROM CLOB / WRITE OUT NEW XML TO DISK
    WHILE amount >= buffer_size
    LOOP
    DBMS_LOB.READ(
    lob_loc => clob_loc,
    amount => amount,
    offset => offset,
    buffer => buffer);
    offset := offset + amount;
    UTL_FILE.PUT(
    file => file_handle,
    buffer => buffer);
    UTL_FILE.FFLUSH(file => file_handle);
    END LOOP;
    UTL_FILE.FCLOSE(file => file_handle);
    END;
    Thanks
    Kuljeet

  • How to insert a background file in a word file using jacob?

    how to insert a background image file in a existed word file using jacob and set the image as behind text?
    Also, where I can find the documentation for jacob,
    Thx very much.

    Go to http://www.simtel.net/pub/pd/60701.html

  • Inserting pdf files in word for mac

    For the life of me I can't figure out how to insert pdf files in my word for mac document. I can insert the first page of the file by inserting it as an object but can't figure out how to insert the entire document.
    Any suggestions would be much appreciated.
    Thanks.

    It actually isn't an odd thing to do. I have been working on a word document - a final report - for a client. I need to add several pdf files as part of the appendices. If I was printing off only a hard copy, I would simply print the pdf file and add them to the end of the report. However, my clients require that the entire document include all the appendices - on one document - to make it simple for anyone who needs to see the final report. I also need to mention that the pdf file is translated document in Inukutuk and I cannot simply copy it and then insert it as the fonts will not translate properly. Complicated I know.... When I insert the document only the first page of the 45 page Inuk document is inserted.
    The pdf files came to me from the translators and I don't know what kind of pdf file it is - I can't tell.
    Not sure if that is helpful or not...
    thanks.
    Wendy

  • Created a pdf from a word-file and inserted formfields. The fields works in other pdf-readers(nitro,reader etc), but not in adobe reader and acrobat. Please help.

    Hi,
    I have created a pdf from a word-file and inserted formfields for a work related file. I've used nitro pro to create the formfield. They works in nitro, reader, foxit etc. but not adobe reader. From page 3 and out, the font wont show when writing in a formfield. Some formfield doesnt even show.
    Please help me fix this (hopefully before the presentation at work friday) :-)
    File in question: Dropbox - Byggeplassperm_bico_prosjektledelse_2.pdf
    Kind regards
    Tobias

    Agreed. Adobe makes no claims that their Reader will work properly with forms made from third party software.

  • How to insert a PDF document into a Word file?

    I'm using Acrobat Standard 9 and Microsoft Word 2010 and I'm unable to insert a PDF document into a Word file. Operating system is Windows 7 Enterprize. Can someone help?

    Thanks for the reply, Bill. 
    Yes, let me elaborate further:
    I have a four page document in WORD with instructions. Examples of the instructions are in PDF files. I want to insert each PDF example next to or below each line item in WORD.The PDF will open when clicking on the icon without having a hyperlink attached to it.  

  • How to insert a image which is in word file in a report ?

    I must place a Logo in a report but the image is in a Office word file. If I had the image as a file , It was be certainly easy I think.
    What I can do to insert this image in my report ?
    Regards and Thanks for helps.
    I work in 6i Oracle Report.

    Thanks Ammad for your response.
    Then the provider of my image doesn't have pushed computing knowledge so it provides me as word file.
    Now I have copied it as you said in mspaint and save it as image.
    But in the Report the old logo is placed in a field as data from a table of database. the data in the table has 'Long Raw' type.
    Then now my problem is how to adapt my image as a field data in this table of Database to have the new logo.
    What I am doing this ? : place my image as data in the table so that I can position it in the field in report as source of data ?
    Thanks for helps.
    Regards.

  • Unable to insert a word file into PDF

    Hi, I encountered a problem with Acrobat recently.
    When inserting a word file into an existing PDF file, a reminder window will show up with “MS Word has stopped working” , and then Acrobat will remind me that it’s unable to open word file (see below picture). BTW, no such problem happened when insert other files with jpg or xls format.
    How should i solve this problem?
    Thanks and best regards!

     
    The version installed in my pc was Acrobat X Pro.
    I tried doc file, problem remained. Btw, no such problem happened when inserting other format files, such as jpg, excel.
    If is a compatibility issue, how to sovle it?
     

  • Is there a way to insert a file (such as a PDF or Word doc) into a presentation?

    I have a few pdf "highlight sheets" that I'd like learners to be able to access and print out if they'd like, while watching the presentation.
    Is there a way to insert a file into the course? (For instance, if they click a certain button, the file would be downloaded to their computer?)
    Thanks,
    Inna

    While Michael's answer is technically correct, I never advise to use the browse button to locate the file. Doing so puts the link in peril as it typically creates an absolute path leading to the document you wish to link to. So use the button if you must, but before committing the link, ensure you remove any pathing information and leave behind only the document file name.
    Cheers... Rick

  • Adobe Acrobat 9/Win7 - Inserting Word documents into PDF file intermittently leads to missing or garbled text?

    Heya.
    I have a user who is creating a PDF essentially compiled from inserting word documents into the position she wants inside of the PDF.
    The problem is that sometimes this leads to missing or garbled text. For example, 6-8.1 is displayed as 6- .1. Which is just plain weird.
    Other times, the text looks garbled or uneven. She turned off her PC but I took screenshots of both of these scenarios. I fear that I am not going to be able to retroactively fix the corruption in this document for her.
    She says she's using very standard fonts. Like Arial. I asked if she could locate the original Word document that produced the garbled text, just for a sanity check. The problem is that her co-worker may have been the only one with that particular word document (there are probably hundreds which compile this PDF...) and IF she has it, she might not be able to locate it on her PC TO check what the original text is. Yikes.
    Google-fu turns up very little. I tried the guidance in this document - https://answers.acrobatusers.com/We-combine-PDF-document-ends-corrupt-What-problem-q197619 .aspx[2] and a Save-As but no avail.
    This also turns up but is not applicable to Acrobat 9 I believe:  http://blogs.adobe.com/acrobatineducation/2010/02/get_rid_of_that_bloat_in_your.html[3]
    She states that she can manually fix the document but after a while it gets corrupted again? But I haven't observed that and she might have just fed me that to amplify the problem.
    I will be able to post screenshots when she turns on her computer tomorrow.

    Here are the two instances of corruption we have come across.
    http://imgur.com/nPztMYm
    http://imgur.com/wHM12e2
    Edit:  A LITTLE MORE INFO.  I am able to select the corrupted text, paste it into Notepad with all the characters intact.  So the characters are THERE.  they are just not being displayed correctly.
    Edit:  They also do not print correctly.  The page prints with characters missing, and she wants to print this document, so that is going to be an issue.

  • All files are converted to Word files in my email program

    after siging in to change my pdf files into word files now all my files inserted on e-mails are transformed into word files...how can I change this please ?

    Hi Ulrsfch,
    When you convert a PDF file to Word, the PDF file remains on your system. So, files should not be automatically converted to a different format because you've signed on to ExportPDF. What may be happening is that the filename association has changed on your system, and your operating system has associated different file types with the .doc or .docx filename extension.  Are you on Mac OS or Windows?
    I look forward to hearing back from you.
    Best,
    Sara

  • Error while inserting .doc file into CLOB object in oracle

    hello everybody ,
    i am trying to insert .doc file into clob column in oracle database.i am using oracle 8i. But i am getting error saying
    ORA-01461: can bind a LONG value only for insert into a LONG column
    i have no clue.
    i am pasting code here
    please help me out.
    regards
    darshan
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileReader;
    import java.io.Reader;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    public class InsertingClob {
    public static void main(String[] args) {
    File f = new File("E:\\dar
    sowres.doc");
    int len = (int) f.length();
    System.out.println(len);
    Connection conn = null;
    PreparedStatement ps = null;
    try {
    FileReader fr = new FileReader(f);
    String FILE_INSERT_QUERY = "INSERT INTO RESUMED VALUES(?,?)";
    conn = JDBCUtility.getConnection();
    ps = conn.prepareStatement(FILE_INSERT_QUERY);
    ps.setString(1,"1");
    ps.setCharacterStream(2,fr,len);
    int result = ps.executeUpdate();
    if(result ==1) {
    System.out.println("file has been successfully inserted into the db");;
    }else {
    System.out.println("not inserted");
    }catch (Exception e) {
    e.printStackTrace();
    and the error is
    java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:582)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2152)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2035)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2876)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:609)
    at InsertBlob.main(InsertBlob.java:21)
    java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column

    You may have one of a few errors going for you there:
    The error says your column in Oracle is a Long not a CLOB, if it is, then make your column a CLOB.
    CLOB's are not suppored in all environments and/or all interfaces (specifically Windoz ODBC has a problem).
    I believe a DOC (Windoz MS-Word) file is a BLOB, due to formatting characters in the file.
    I had a very similar error using Access and trying to do this, but changing to SAS fixed the problem. It could very well be that your version of ODBC/JDBC drivers does not support it properly.

  • Can no longer import Word files into InDesign

    Hello,
    For many months I have been importing Word files into InDesign CS3 (Mac OSX 10.4.11) with no trouble, but I started having a problem yesterday.
    When importing a 17-page Word file with 16 footnotes, I got none of the text and only the footnote numbers. This is what I get in InDesign:
    12345678910111213141516
    (Endnotes)
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
    These are the things I've tried already: restarting, deleting preferences, changing the import options, using CS2, importing someone else's Word file, importing a Word file that I imported successfully a couple of months ago. None of this works.
    It has been suggested that I save the Word file as rtf, but since I have 200 files to import and I'm using Word's character styles for italics, bold, small caps, etc., I'd rather try to fix this problem.
    Can someone help?
    Thanks,
    Tina

    I am using indesign CS2 and i'm trying to import a Word document into a new chapter for a book i'm laying out. it's about 30 pages, but there are at least 80 foot notes. i'm able to get about 1/2 of the document with the footnotes to flow correctly, then EVERYTHING disappears. the only way i've been able to get the remaining text to appear is by adding characters to the text. i'll hit "vvvvvvvvvvvv" a bunch of times and "magically" a little chunk of text and it's footnotes appears. then the ole disappearing act happens. so i do it again. i'm able to get all the text to appear finally, but when i delete the "vvvvvvvvvv" from the places i inserted them, the text disappears again. i have no idea why this is happening or how to fix it. any ideas?
    thanks so much,
    travis

  • I have a problem using the "save as pdf..." command of the print panel of MS Word (lower L corner).  When file has a few photos in it, the pdf file becomes huge; 7 mb Word file becomes 31 mb., on MacBook Pro with Intel Core 2 Duo processor , OS X 10.5.8

    How can converting a MS Word file to a pdf make the file 5x bigger?  Can someone tell me how to update the "save as pdf..." feature when "printing" a file in MS Word (Word:mac 2008, ver. 12.2.5).  The problem is that using this to create pdf files gives huge files when the Word file has graphics pasted as pictures from Powerpoint, even for simple graphics and when first exported at low resolution (180 dpi) as jpg files from Powerpoint and inserted into Word.  

    Here's a little more info on the save_as_pdf issue.  It is Word files in 97–2004 format (doc) that get 5x bigger.  The conversion works fine and file size is normal if the Word file is saved in most recent Word format (docx rather than doc).  Somehow MS Word can't save its own files properly in pdf format.  Thanks Bill for all the frustration.

  • Can you insert a file path in pages document

    Is there any way of inserting a "file path" into a document in the new version of pages. You could do it in Pages 09 but I can't find any way of doing in the new
    Version. I know the inference is you are using the cloud - therefore file paths are not needed - but a lot of us still store documents in various places ( especially in the work place).

    No.
    Pages 5 has over 90 other features removed:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=b14426a2c5af2 65f2213d98ee45f08d7&mforum=iworktipsntrick
    Pages '09 should still be in your Applications/iWork folder.
    Export your Pages 5 files to Pages '09 or Word .docx and trash/archive Pages 5.
    Then rate/review Pages 5 in the App Store.
    Peter

Maybe you are looking for

  • ITunes  can't see other Ipod synced by another computer.

    I have another IPod that is used by someone else. She wants it erased and it needs to be updated, but they are having problems with their dial up connection. It keeps saying that it has to be updated first. I said that I would try it on my computer.

  • FedEx Rate Available Services

    I'm having trouble getting the RateAvailableServies working with the FedEx web services. I can make my call to the service and get information but when I try to add more specific information I get the following error: Web service operation rateAvaila

  • Recovery of PSE 5 catalogs following disk replacement

    I have had to have our hard disk replaced. Unfortunately we had a number of catalogs that had not been backed up. (No comments please) I have recreated the file structure and therefore put all the pictures back in the correct place. I appear to have

  • Problem displaying bidirectional fields

    Hello, I've imported a csv file into an existing Oracle 10g table, using HTMLDB wizard. The csv file contains several bidirectional columns, in the following format "number string". During the import process, in the last step of the wizard, I can see

  • Ora -26687

    HI THERE i have startup oralce streaming on database(object) level, capture and propogation on source database is OK, But the apply process on destination database give error, and the error is following. ORA-26687 no instantiation SCN provided for "S