How to read word document in pl/sql

How to read word document which is stored as BLOB column in table.
I want to read it word by word.Please explain me how to raed using DBMS_lob
package and substr,instr.

You cannot. A Microsoft Word document is in a proprietary binary format. You cannot treat it as a text file and read "word-by-word" from it.
As for examples - refer to the [url http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/toc.htm]Oracle® Database PL/SQL Packages and Types Reference manual. It describes DBMS_LOB and its usage in detail.

Similar Messages

  • How to read Word Document in JAVA

    I use POI for read an write Word Document, but i have a problem of a compatibility (i use Word 2003 & the api poi supportes Word97).
    Can you help me please !!!

    Aspose.words is an interesting product with a good compatibility (up to word 2003).
    It is pure Java (Word is not required) but it's a commercial product. The only thing missing is the ability to print a word document.
    http://www.aspose.com/Products/Aspose.Words/Default.aspx
    Bye.

  • How to upload word documents in iphone?

    Hello, I need to give a talk and I dont have printer... I should use the iphone, but I dont know how to read Word documents in the iphone... Someone can help me?

    Apple has a paid  app called Pages.  I have never used it but I guess it will open Word documents and might even allow you to store them on your phone maybe in ibooks or somewhere

  • How to Read Attached Document In oracle apps.

    Hi All,
    how to read attached document in Oracle apps.
    Select * from   fnd_attached_documents.
    Regards,
    Mohan Reddy

    Hi Husseein,
    how to read pdf file in blob data type column
    i have tried below query but in this part utl_file.fopen asking directory name i don't have directory name.
    could you give any another solution.
    DECLARE
      l_file      UTL_FILE.FILE_TYPE;
      l_buffer    RAW(32767);
      l_amount    BINARY_INTEGER := 32767;
      l_pos       NUMBER := 1;
      l_blob      BLOB;
      l_blob_len  NUMBER;
    BEGIN
      SELECT FILE_DATA
        INTO   l_blob
        FROM   fnd_lobs
         where file_name = 'est-1.pdf' and FILE_ID = 332810;
      l_blob_len := DBMS_LOB.getlength(l_blob);
      -- Open the destination file.
      l_file := UTL_FILE.fopen('IRB','STD_FlipBook_Religion2013.doc','wb',18306);  --(Here I don't have Directory name)
      DBMS_LOB.read(l_blob, l_amount, l_pos, l_buffer);
      UTL_FILE.put_raw(l_file, l_buffer, TRUE);
      l_pos := l_pos + l_amount;
      -- Close the file.
      UTL_FILE.fclose(l_file);
    END;
    Regards,
    Mohan Reddy

  • How to read ibook documents in addobe reader

    how to read ibook documents in addobe reader

    Why not in iBooks?
    Do you need to edit?   Are they in PDF format? 
    (You have the option to email the PDF edit and then add back into iBooks, delete the previous version)

  • How to convert word documents to html page in sharepoint online 2013

    Hi,
    I am new SharePoint and still learning it.
    I have been tasked to do the following on office 365 E3 SharePoint 2013 Online edition.
    1) I have to create a Web page in asp.net
    2) This page needs to show document from a given SharePoint folder and bind them in a grid or dropdown on the asp .net web page
    3) On selecting the document from the drop down or gird (on asp .net webpage), I need to show the SharePoint word document as HTML on the webpage (something like word to html) Note: These SharePoint word document may contain Images, bullets, tables etc. 
    What I have been able to do till now
    1) I have been able to connect to SharePoint from ASP .net application.
    2) I have been able to retrieve document from a specific SharePoint folder.
    3) Read the document from SharePoint folder and bind them to a drop down on the asp .net page.
    What is missing?
    I am not aware about any API that SharePoint Online provides to convert Word document to HTML. Any code sample or reference on how to will be much appreciated. 
    I am not also not sure what is the best way of achieving the functionality this?
    Thanks 
    Krishna

    If this was SharePoint server then it would be easy however in O365 You need to create a app which will use the word automation service and below is  powershell which you can use for the conversion:-
    # This script will convert Docx to PDF using word automation and similarly it can be used to convert to HTML
    $wordFile="http://contoso/kick.docx"
    $pdfFile="http://contoso/kick.pdf"
    $wasp = Get-SPServiceApplicationProxy | where { $_.TypeName -eq "Word Automation Services Proxy" }
    $site = Get-SPSite "http://contoso"
    $ConvertJob = New-Object Microsoft.Office.Word.Server.Conversions.SyncConverter($wasp)
    $ConvertJob.UserToken = $site.UserToken
    $ConvertJob.Settings.UpdateFields = $false
    $ConvertJob.Settings.OutputFormat = "PDF"
    $ConvertJob.Convert($wordFile, $pdfFile)

  • How to edit Word Document stored in BDS through ABAP WebDynpro

    Hi All,
    Currently, my company has an ECC 6 program very similar to SAPRDEMO_FORM_INTERFACE.  This program takes a word form and populates it with various bits of data for the end user.  The user can then edit this document as they see fit and save it to the BDS system against a Material. 
    The current requirement is to replicate this functionality through a WebDynpro program.  SAP does have a demo WebDynpro program IOS_TEST_WORDPROCESSING under package SIOS.  Within Method WDDOMODIFYVIEW of view TEST_VIEW_WORDPROC, the program takes the URL of a MIME repository object (which is a word document) and displays that document.  I tried to replicate this functionality by using the URL and content of the document using the CL_BDS_DOCUMENT_SET; however I am unsuccessful in getting this document to display.  No matter what I do, I cannot seem to get the BDS document to display. 
    Does anyone know how to display and edit BDS documents through WebDynpro?  Any help that you can provide would be greatly appreciated.  Thanks for your help.
    John

    >
    John Breen wrote:
    > Hi All,
    >
    > Currently, my company has an ECC 6 program very similar to SAPRDEMO_FORM_INTERFACE.  This program takes a word form and populates it with various bits of data for the end user.  The user can then edit this document as they see fit and save it to the BDS system against a Material. 
    >
    > The current requirement is to replicate this functionality through a WebDynpro program.  SAP does have a demo WebDynpro program IOS_TEST_WORDPROCESSING under package SIOS.  Within Method WDDOMODIFYVIEW of view TEST_VIEW_WORDPROC, the program takes the URL of a MIME repository object (which is a word document) and displays that document.  I tried to replicate this functionality by using the URL and content of the document using the CL_BDS_DOCUMENT_SET; however I am unsuccessful in getting this document to display.  No matter what I do, I cannot seem to get the BDS document to display. 
    >
    > Does anyone know how to display and edit BDS documents through WebDynpro?  Any help that you can provide would be greatly appreciated.  Thanks for your help.
    >
    >
    > John
    John,
    use CL_HTTP_CLIENT instead to get the document from external URL.

  • How to open Word Document using java?

    Respected Sir/ Madam,
    I am doing my project in Network Security using java. I have to transfer the files from server to the client. Each transferred file should have some of the access privileges such as read, write and exeucte. If the transferred file is a word document means then automatically the client should open Microsoft word and if the file is having Read Permission alone then the save, Save As, cut,copy, paste options in the MS - Word should be disabled. This is similar for all the files that i have transferred. That is if the transferred file is excel, audio, video,txt file the corresponding application should be opened properly. How could I acheive this. If the file is having write permission then if the user clicks the save option then the contents of the file should be saved in the server machine not in the client machine, Could we achieve this???? Can anyone help me regarding this? Please give me your views about this query?

    Respected Sir / Madam,
    Thank you very much for your reply. Could we use Microsoft API inside java program to achieve my doubts?? Could U explain it more????

  • How to edit word documents once converted

    Can someone please advise how to edit a document I have converted into word from PDF.
    Many thanks

    Not sure what you mean. Are you asking how to use WORD? It also depends if you used the layout or the flow conversion process. With the layout, you get a bunch of text boxes. Almost nothing is in the standard flow of WORD. If you use the flow version, you sometimes get some strange sequencing of items. You might try both. If you have a graphic, then you either have to edit the graphic in a graphics package or do OCR in Acrobat before you do the conversion.

  • How to open word document in labview

    Hi,
    I want to open word document in labview,well i have done that.
    I want to display only the page part,don't want any editions,formatting to be done.
    please suggest me solution if any.

    How are you displaying your Word document, have you achieved that already?
    As far as I know, there is only one way to display Word documents and that's through the browser ActiveX interface:
    Using the Microsoft Web Browser control to embed a Word Document in LabVIEW
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

  • How to import words document to photoshop?

    I just bought photoshop Cs5. I would like to use the program to create my restaurant menu but my old menu was created in Words document . Is there a way to convert Words document to a format in photoshop so I can just edit them?
    need help from a beginner
    Thank you

    I my opinion you would be better to recreate it in Photoshop if that is what you are now going to use (I would use InDesign if you had that option). Doing this will also help you learn how to use it. You may be able to copy and past the text ok within reason from the word document to Photoshop. Also if you have any images equally you should be able to do the same with them.
    I assume you have some kind of table layout with meals and prices..? You may find this kind of layout fiddly with Photoshop that is why I mentioned InDesign as you would be able to control everything a lot better.
    Good luck!

  • How to download word document

    HOw to down load word document ?

    Download from where? I generally find that it's easiest to just email documents to myself and open them in a compatible app on my iOS device.

  • Help:how to drag Word document into a JTextArea

    Anyone knows how to achieve this?

    The easiest way would be to use Word to save the document in rich text format and then read the document into a JEditorPane.

  • Writing MS Word Document from PL/SQL

    Hi,
    I have an application which writes the data into EXCEL from PL/SQL. I am using follwong code to write the data.
    Owa_Util.Mime_Header ( 'application/vnd.ms-excel', False);
    htp.print('Content-Disposition:attachment;filename="'||v_report_title||'.xls"');
    owa_Util.Http_Header_Close;
    I want to know if there is any option to write the data into MS Word. If i am changing the Mime type to ms-word its generating a word document with the HTML equivalent of data. Looking forward for a quicked response.
    Regards,
    Dhirendra

    I am not sure if you ever got your problem resolved, but I just wanted to share my experience that is is possible to have "server" side code which will get document in Oracle or another Doc. management syste, stream it back to the client and open it (I am talking about MS Office documents) in Office application or actually inside the browser (there is a little trick with the client Windows Explorer settings to enable this, otherwise it will open as an application).
    It works perfectly also for TXT files, .TIFF, .jpg , .PDF etc.
    You have to be correctly setting the MIME type depending on type of the application the files was created by (I can see you are doing that);
    BUT your following line :
    htp.print('Content-Disposition:attachment;filename="'||v_report_title||'.doc"');
    ==> is telling the client's browser that the file is coming over as attachment and therefore it will always prompt the user with OPEN, SAVE, CANCEL.
    Here is a snippet of my code example [ writting the file into local temp dir]:
    Response.AppendHeader("ContentEncoding", ctype);
    // set the final Content Type
    Response.ContentType = ctype;
    // stream and write the file out
    Response.BinaryWrite(bytBytes);
    Response.End();

  • Can one generate a report in Word document using PL/SQL?

    We have a weekly status report application created in APEX, is there a way to generate a report in MS Word document (including formatting the doc) using PL/SQL by pulling data from Oracle database? Please shed some lights on this and any info and experience would be greatly appreciated.
    We use Oracle11g and apex version 3.1.1.00.09
    Thanks!

    Hi Tony,
    you are right, the NEW format isn't necessarily improved, also the user would need at least Office 2007 or higher.
    Still it is possible to do that ;-)
    And yes, there are other possibilities, but this question is dealing with Word documents (.doc i assume).
    Also my Statement "docx = XML" isn't clear enough. Docx is a zipped file which contains a xml file. Details: http://en.wikipedia.org/wiki/Docx
    sorry for the confusions,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    Work: http://www.click-click.at

Maybe you are looking for

  • Problem with sending emails on my iPad 2?

    Hi, I'm unable to send emails using my iPad 2 but I'm using all the correct account settings from my macbook pro which works perfectly. I have deleted and re-set my accounts but still dose not work, please help? Thanks Darren

  • Files Unable to be Imported

    Hi, whenever I try to import a file, I get an error saying either " error: file '(insert filename here)' cannot be imported- this MooV  file is damaged or unsupported. I have tried this for several videos and none of them work. What puzzles me is the

  • Freeze when drag multiple pdfs to photoshop CC in win 8.1

    I'm using new DELL Inspiron 3847 desktop bought end of October 2014, Did lots of Win 8.1 updated to latest, last step was using Adobe Creative Cloud, Photoshop, illustrator and Acrobat Pro installed, then update to the latest. I have lot's PDF files

  • Returning a single custom instance.

    Hi, I am loading data into a jdo class using CustomResultSetResultObjectProvider. All is working well. I am in fact using a CachedRowSet (optional download from the sun website). I wish to load records 20 to 30 from the resultset into a collection of

  • Migrating but to new user account - permissions problems?

    Hi guys, I have a new iMac, and want to move all my old files (not apps - yet) to my new machine. I'd like to start fresh as much as possible and would like to split my old files and email accounts into three separate accounts on the new machine - Ho