Reading a .doc file by pl/sql

How can i read a .doc file by pl/sql or read a pdf file by pl/sql.

Using <Insert Search Engine Here> is probably the best place to start. Only took me a couple of minutes to find these:
PL_FPDF
PL/PDF
Microsoft Word Demo

Similar Messages

  • How to download .doc file from ms sql

    Hi guys.,,,!
    I have a problem in file uploading and downloading. The problem is i upload my .doc file in ms sql server successfully completed. After that i would like to download the file from the database.can anybody tell that how to download the file from the database.

    mani_miit wrote:
    I have a problem in file uploading and downloading.OK.
    The problem is i upload my .doc file in ms sql server successfully completed. Sorry, I don't see a problem here? You said that it is successfully completed. Please elaborate the problem.
    After that i would like to download the file from the database.can anybody tell that how to download the file from the database.Just get an inputstream of the file from the database using ResultSet#getBinaryStream() and write it to the output of whatever UI technology you're using.

  • Uses the library to get UTL_FILE to read a excel file in PL SQL?

    Good day.
    Someone can give me some code that uses the library to get UTL_FILE to read a excel file in PL SQL?
    I intend to use this library because I want to run a script on my machine to treat an excel file without having to make changes on the server.
    Thank you.

    163d6dc5-fa66-4eb1-b7d5-653dea63bbc8 wrote:
    Good day.
    Someone can give me some code that uses the library to get UTL_FILE to read a excel file in PL SQL?
    I intend to use this library because I want to run a script on my machine to treat an excel file without having to make changes on the server.
    Thank you.
    Ranit's links are useful, you should read them.
    Also check out the FAQ on this forum:Re: 5. How do I read or write an Excel file?
    UTL_FILE is not the best choice for reading data from Excel files.
    It also will not be able to read an Excel file located on your client computer.  As with any PL/SQL code on the database, it can only access things that the server itself can see, so that doesn't include hacking across the network, bypassing network security, and hacking into the client computers operating system to read files directly from it's hard disk.  This isn't how client server architecture is intended to work.

  • How to read a Zip file in PL/SQL program

    Hi,
    I was Reading a ".csv" file from a web URL eg. "www.aba.com/zxc.csv" in my PL/SQL procedure using UTL_HTTP package and loading data in my DB.
    Now that file is in .zip format, is there any way that I can still read that .csv.zip file through my PL/SQL procedure. Because now I have to download it first then
    unzip it and then I am loading it into my DB using UTL_FILE package instead I want to do it automatically as I was doing it before when it was not zipped.
    Thanks & Regards
    Sanjay

    Peters solution is a great, nice alternative - you should consider it.
    But your present solution reads the data from the web using UTL_HTTP into a CLOB I presume? So you are not hitting the file system at all?
    If it is not an option for you to go to the file system, then it is possible that you can use [url http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/u_compr.htm#BGBBCDDI]UTL_COMPRESS package.
    That is (maybe) a possibility if the zip file only contains one file - it cannot handle if the zip file is a zip archive with several files in it.
    You could try doing your UTL_HTTP load into a BLOB and then call UTL_COMPRESS.LZ_UNCOMPRESS to unzip that BLOB into another BLOB.
    I'm not guaranteeing it will work, but it may be worth a try if you cannot do it Peters way ;-)

  • Read a doc file and write back to a doc file

    How to read line by line from a doc file and then arrange it.
    Like-->
    amit
    sumit
    prem
    jeev
    these four names are present in the doc file. Now how to read by means of java program and sort these names and write back to a new doc file?????
    What packages and methods are to be used??
    Please help.....
    Edited by: Jaguar on Apr 11, 2011 12:16 AM

    Jaguar wrote:
    How to read line by line from a doc file and then arrange it.By 'doc' do you mean MS Word?
    these four names are present in the doc file. Now how to read by means of java program and sort these names and write back to a new doc file?????You seem to have a sticky '?' key and an unreliable shift key (to apply an upper case letter to the start of every sentence). Please fix them.

  • How to read a text file through pl/sql

    How to read a text file through pl/sql

    pl/sql runs inside the database. so your file also should be on the database server file system for you to be able to read.
    check out UTL_FILE package. This is the database package to read/write files on the database server.

  • How to read a .doc file

    how can we read a MSWORD file through java?

    You Can NOT.
    You can, however, work with .rtf files.
    The reason is that MS does not publish the format for .doc since they consider .rtf to be the format for inter-application use. The .doc format is different for each version of word.
    visit http://www.wotsit.org/ for the file format for RTF, or use one of the existing classes which deal with RTF.
    Since .rtf is meant to be used publicly and uses ascii markup it is probably much easier than trying to decifer the binary markup in .doc files.

  • Reading a CSV file with PL/SQL

    Hello:
    I have a CSV file provided to me by a client. We want to insert the data from this file into a table and perform other processing.
    Is it possible to call a CSV file within PL/SQL? If so, how do I begin?
    Thanks.

    Nawneet wrote:
    CSV file can load it using SQL loader
    go through the below link
    http://www.orafaq.com/wiki/SQL*Loader_FAQ
    SQL*Loader doesn't work very well in PL/SQL.
    Better is External Tables:
    http://www.morganslibrary.org/reference/externaltab.html

  • Read a csv file and update sql db

    I'm a newbie to C#. I've put together the code below - see two commented lines where the for loop starts. need advise as to the correct approach. you may insert pseudo
    code in appropriate places. Thanks in advance.
    Below is my code:
    public class MailingConfirmationService
            private SqlConnection _con = new SqlConnection(ConfigurationManager.AppSettings.Get("ConnectionString"));
            public void ProcessFilesForMailingConfirmation()
                //Process file(s)
                IResource resourceFile = ResourceFactory.GetResourceFile(ResourceList.FileLocation);
                DirectoryInfo dataFiles = new DirectoryInfo(resourceFile.GetString("filesourcelocation"));
                if (dataFiles.GetFiles().Length > 0)
                    log.Info("File Processing started");
                    foreach (FileInfo dataFile in dataFiles.GetFiles("*.csv"))
                        log.Info("Processing Data File: " + dataFile.Name);
                        if (dataFile != null && dataFile.Name.Contains("IN"))
                            foreach (string sLine in File.ReadLines(dataFile))                     
                                      _con.Open();
                                    cmd.ExecuteNonQuery();
                                    _con.Close();

    The   foreach (string sLine in File.ReadLines(dataFile))
      should be  foreach (string sLine in File.ReadLines(dataFile.FullName))
    its expecting path as param.
    Check also for this example to enumerate files and their lines:
    https://msdn.microsoft.com/en-us/library/dd383503%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
    Fouad Roumieh

  • Read XML File Using PL/SQL

    Hi,
    I have to read a XML file using PL/SQL. I am new to this so please explain in easy steps.
    Regards,
    SF

    STEP - 2
    SQL>
    SQL> DECLARE
      2    l_ctx dbms_xmlsave.ctxType ;
      3    l_xml CLOB :=
      4  '<?xml version="1.0" encoding="UTF-8" ?>
      5  <NewDataSet>
      6      <ROW>
      7          <DEPARTMENT>BA52</DEPARTMENT>
      8          <PCS_CONTRACT_TAG>MD-3GSM</PCS_CONTRACT_TAG>
      9          <LOCATION>Australia</LOCATION>
    10          <MAY_2006>21668</MAY_2006>
    11      </ROW>
    12      <ROW>
    13          <DEPARTMENT>BA501</DEPARTMENT>
    14          <PCS_CONTRACT_TAG>MD-3GSM</PCS_CONTRACT_TAG>
    15          <LOCATION>China</LOCATION>
    16          <MAY_2006>8166</MAY_2006>
    17      </ROW>
    18      <ROW>
    19          <DEPARTMENT>BA522</DEPARTMENT>
    20          <PCS_CONTRACT_TAG>MD-3GSM</PCS_CONTRACT_TAG>
    21          <LOCATION>Australia</LOCATION>
    22          <MAY_2006>21668</MAY_2006>
    23      </ROW>
    24  </NewDataSet>' ;
    25  BEGIN
    26      l_ctx := dbms_xmlsave.newContext(targetTable => 'XML_INSERT');
    27      dbms_output.put_line(dbms_xmlsave.insertXML(ctxHdl => l_ctx,
    28                                                  xDoc   => l_xml) ||
    29                           ' rows inserted.');
    30      dbms_xmlsave.closeContext(l_ctx);
    31  END;
    32  /
    3 rows inserted.
    PL/SQL procedure successfully completed.Regards.
    Satyaki De.

  • Convert doc file generated by OpenOffice to PDF X1a

    Hi, I have a .doc file originally produced by Open Office Writer and then converted to a Word format. I would now like to use Acrobat 10 to convert this .doc file to a PDF X format, but I'm not having any luck. I've tried the following two approaches:
    1. I'm able to use Open Office Writer to convert it to a normal PDF format. I then tried to take that PDF file and convert it to a PDF X file using Acrobat Pro with Preflight, but a bunch of errors appeared.
    2. If I start in Acrobat Pro, select Create PDF from file, select my documents, none of the .doc files produced in Open Office show up on the list--as if Acrobat Pro won't read any .doc files produced by Open Office.
    Hope someone can help. I'm new to Acrobat Pro.
    Thanks in advance.

    Use Ctrl-P or Use FILE>Print when you have OO Writer open with your document. You should get something like below.
    Just select the Adobe PDF printer, check properties if you like, then print. In this case, OO shows a preview of the pages in the document as they should look. I created a simple one as an example. I did a preflight after using the PDF-X1A settings and did get errors noted. One of them had to do with tagging that does not happen when you use the print. You might try to print normally and then use preflight to convert. I tried also and still got errors. At least I may have given you some things to try.

  • Why can't I read a .docx file?

    I have an iPad running iOS 5.0.1 and I just received an email with a .docx attached.  Whan I tap on it, it tries to open only to get a message that it can not read this kind of file.  It can however read a .doc.  What's up with that?

    Gar Benedick wrote:
    Asatoran,
    Thank you!  However, I am not using an app, I am using the latest version of Apple Mail and as I stated, I can read a .doc file that is sent to me, just not a .docx file.  If .docx started back in '07, why hasn't this been updated, or is it a Microsoft licensing thing?  Preview on my MBP can read .docx file, why not Mail?
    As Dave and Gilh said, you should be able to open DOCX.  (And I tested an XLSX as well) on iOS5.0.1, which I did on my iPad1.
    The file formats were introduced in Office2007, but it took a while for developers to update their apps to handle the Microsoft proprietary format.  And even now, they can't always open every document perfectly.  (i.e.: tables are not aligned properly.  Macros don't work.)
    So in addition to what Dave said about resetting your iPad, also try opening a different DOCX file.  Preferably a "simple" file.  (Just one or two words.)  No macros either.

  • Want to read a word file

    can any one let me know how to read a .doc file through my java io.
    Regards
    Naresh Waswani

    Jakarta POI / HWPF is mentioned in the list above. While there isn't a lot of activity on the project, and lots of warnings that it is in its infancy, it is certainly capable of extracting the text contained in the document (including that within tables etc) with no problems.
    I've used it several times for this purpose and have been very impressed with how simple it is to use.
    ~D

  • Doc file, no MS OFFICE

    I installed NeoOffice which is 1 great program. it reads both .doc files and Excel files. And it is free unless you chose to send a donation. I only use NeoOffice when folks send me those files. Otherwise, I use Pages. I just thought some users would like to know about NeoOffice.

    Well, I certainly did not mean to violate the Terms of Use. I have seen a lot of posts about MS Office vs Pages and the plus and minus points of both. Personally, I used to use Appleworks, then, switched to Pages. But there are times, I needed a spreadsheet (before Numbers) and for that, I started with NeoOffice and I think it is an excellent program. I apologize if I did the wrong thing. Perhaps I should have responded to a different post instead of starting a new topic.

  • Read Doc File

    Hi all,
    I try to ready DOC file using the following code but i face the folowing error.
    IS there any way to read DOC or DOCX files?
    declare
    f utl_file.file_type;
    s varchar2(200);
    begin
    f := utl_file.fopen('OUTPUT','x.doc','R');
    utl_file.get_line(f,s,4000);
    dbms_output.put_line(s);
    UTL_FILE.FCLOSE(f);
    exception
    when NO_DATA_FOUND then
    utl_file.fclose(f);
    end;
    SQL> /
    declare
    ERROR at line 1:
    ORA-29284: file read error
    ORA-06512: at "SYS.UTL_FILE", line 106
    ORA-06512: at "SYS.UTL_FILE", line 746
    ORA-06512: at line 7
    SQL>
    Many Thanks

    thanks EdStevens ,
    Also i try to used this but the results in different charachters.
    CREATE TABLE LOB_TABLE4
    LOB_ID INTEGER,
    lob_name VARCHAR2 (100 BYTE),
    CLOb_COL CLOB
    DECLARE
    L_CLOB BLOB;
    L_BFILE BFILE;
    BEGIN
    L_BFILE := BFILENAME ('LOB_DIR', 'file.doc');
    DBMS_LOB.OPEN (L_BFILE, DBMS_LOB.FILE_READONLY);
    L_CLOB := DBMS_LOB.SUBSTR (L_BFILE, 1, 2000);
    INSERT INTO LOB_TABLE4 (LOB_ID, LOB_NAME, CLOB_COL)
    VALUES (1, '1st Row', UTL_RAW.CAST_TO_VARCHAR2 (L_CLOB));
    COMMIT;
    END;
    SELECT DBMS_LOB.SUBSTR (CLOB_COL, 1000, 1) FROM LOB_TABLE4;
    SQL> /
    the result as follow:
    DBMS_LOB.SUBSTR(CLOB_COL,1000,1)
    ╨╧◄αí▒→ß > ♥ ■  ♠ ☺ . ► 0 ☺ ■    -
                                    ∞Ñ┴ ♥Ç ♦ ≡↕┐ 0 ♫ bjbj┤V┤V
    ♦▬ 4♫ ╓<☺ ╓<☺   ☼   ☼
      ☼ ╖ û♣ û♣ ┘↕ ┘↕ ┘↕ ┘↕ ┘↕ ¶
         φ↕ φ↕ φ↕ φ↕ ♀ ∙↕ ♀ φ↕ σ¶ 0☺ ♣‼
    DBMS_LOB.SUBSTR(CLOB_COL,1000,1)
    ♣‼ ♣‼ ♣‼ ♣‼ ⁿ‼ ⁿ‼ ⁿ‼ d¶ ☻ f¶ f¶
    f¶ f¶ f¶ f¶ $ §▬ ó☻ ╖↑ : è¶ § ┘↕
    ⁿ‼ ⁿ‼ ⁿ‼
    SQL>
    i don't know why? but when i used to .txt it's working no problems but this problem with word file.

Maybe you are looking for

  • How can I change my icloud appleID to match my itunesID?

    I found a good post on this posted by renders4 in March 2014 that explains it well.  However, my other issue is that I was using a previous email when I created the account, and the email I used for icloudID is not available anymore.  Since I don't r

  • A3 Reference masters from fat 32 to Mac OS Extended (Journaled)

    I have A3 and all of my photos are organized as referenced masters on a Fat 32 formated external. The A3 library (where all my alterations are) is on my imac pictures folder on the imac HD. My Vault is on my current MAc OS extended (journaled) extern

  • Dynamic Submit Button- Required Fields

    I needed a dynamic submit button that would cc a field from the form.  I found the following script and it works great, but it doesn't give an error message if someone didn't fill in a required field like a regular submit button would. Is it possible

  • Looking for a .pdf organizer/metadata editor

    Hi, I have a bunch of .pdf files of research papers that I would like to organized and publish to the web. I would like to be able to quickly preview the .pdf, rename, modify basic metadata like title, author, keywords and subject, and then upload to

  • How do i reduce MBs in iMovie?

    I am having trouble with my project because I cannot figure out how to reduce the amount of MBs of my movie in the iMovie software. My movie is currently 16mbs and the requirements are 8mbs maximum. Please help!