How to show a word document stored in a BLOB column?

Hi guys.
I'm trying to show the content of a MS Word document through forms 6i. This document was stored as byte-for-byte by an application developed in .Net to an BLOB column (oracle table). Anybody could help me in how to show this document using Internal Persistend LOBs and through forms 6i?
I've been searching for it a lot of time without success...
Thank you in advance.
Alex.

I've read about using the ole2 item, but I don't how to do it with BLOB files. I tried to use it and didn't work... I don't know if I've used it correctly or not. Could anybody give a sample, please?
If anybody knows other way to do it, please send too.
Thanh you,
Alex.

Similar Messages

  • How do I search a word document stored in a BLOB using PHP?

    I have been successful at saving files in a blob field using oracle.
    I need to search through the word document, how can I do it using PHP?
    Please help!

    You're going to want to look at the Text Application Developer's guide.
    9i - http://otn.oracle.com/pls/db92/db92.show_toc?partno=a96517&remark=drilldown&word=microsoft+word
    10g -
    http://otn.oracle.com/pls/db10g/db10g.show_toc?partno=b10729&remark=drilldown&word=text+application+developer%27s+guide
    Give this a read and it'll give you what you need in order to search CLOB and BLOB fields for text data.
    It all works around a particular type of index which is then referenced using a CONTAINS clause in your SQL... eg:
    SELECT id FROM documents WHERE CONTAINS( document_body, 'Oracle' ) > 0
    Once you've got your head around the basic priniciples you're going to want to look at the document filters. This should allow you to index MS Word documents (warning: I've never used this for Word).
    It's not something that you can just pick up from reading a 20 line reply on a forum, but it sounds like what you're looking for.
    We use it here in order to look up on HTML documents, and it works a treat. We converted our Word documents to HTML so we could mark them up and then display them inline on pages.
    We wrap up the SQL that actually does the CONTAINS clause in a PL-SQL function, but I don't image there's a problem issuing a CONTAINS over OCI. Let me know if it works!
    Might this be an option for you?
    Blog at http://robertbaillie.blogspot.com

  • How to save and work with a Word document stored in the Oracle 8i Database?

    Hi,
    If you have any experience with saving and working with a Word document (stored in 8i) from Forms 6.0, then please let me know how.
    Thanks ...
    Peter Nielsen

    hi
    i had worked storing word documents in oracle8i.tell me what exactly u want to know.
    null

  • APEX- How to open world document (and other files) stored in a blob column?

    Hi,
    I have an application developed in Oracle Apex 3.2.1 and RDBMS Oracle 9.2.0.8 (SUN SOLARIS SPARC 64 BITS).
    I have a table called BAC_ARQUIVO, with the following structure:
    CREATE TABLE BAC_ARQUIVO
    (NAME VARCHAR2(4000), /* Name of the file stored in BLOB column */
    SUBJECT VARCHAR2(4000), /* A brief description about this file stored */
    ID NUMBER, /* An identification of this file - It´s a PK column of this table*/
    BLOB_CONTENT BLOB, /* Blob field that store diferent kind of files - XLS, DOC, PPT, PDF, EXE, ZIP, etc);
    MIME_TYPE VARCHAR2(4000) /* Identification about which kind of file is stored on BLOB field */
    The field BLOB_CONTENT of this table can store:
    - Executable files;
    - MS-World Documents (DOC);
    - Zip Files (ZIP);
    - Ms-Excel Files (XLS);
    - Ms-Powerpoint files (PPT);
    - Adobe documents (PDF);
    Actually, in this APEX application, i have developed a interactive Report in which the user can download these files to desktop without problems.
    But now, my user would like to know if it´s possible that APEX application can OPEN some of these files stored on this BLOB column WITHOUT download it.
    My user would like to see a hiperlink (or button) that, if pressed/acessed, can open a new page (or a page inside application) with the document. He doesn´t need to edit this oppened file. He only wants to see it.
    For example, if the file stored in the blob column is ms-word type , so the application will open a MS-WINDOWS application with these file.
    Is it possible?
    I saw in this forum that it´s possible to open a file stored on "/i/" directory, but i need to open the file stored in BLOB column. I don´t want to store the file in operational system of the server.
    Could any one demonstrate to me how it could be done?
    Best regards,
    Sergio Coutinho

    Hi Sergio,
    This link might be helpful:
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm
    Also refer the BLOB Download Format Mask :
    {message:id=9716335}
    Here I have given the format mask for APEX 4.0, which will slightly differ for 3.2.1 and proposed changes
    in the format mask are:
    1) Format Mask: DOWNLOAD
    2) Content Disposition: Inline
    This will be achieved with it:
    >
    But now, my user would like to know if it´s possible that APEX application can OPEN some of these files stored on this BLOB column WITHOUT download it.
    My user would like to see a hiperlink (or button) that, if pressed/acessed, can open a new page (or a page inside application) with the document. He doesn´t need to edit this oppened file. He only wants to see it.
    >
    Hope it helps!
    Regards,
    Kiran

  • Modifying MS WORD documents stored in BLOBS. (Oracle 9i Release 9.2.0.4.0)

    I have a need to replace a string of characters in an MS Word document that is stored in a BLOB field in an Oracle 9i database.
    Background: We have a large number of MS Word documents (~50,000) and many of them contain links to other Word documents stored on various servers throughout our network. We are moving a number of these servers, thus invalidating these links. I need to be able to update these links without having to open up every one of these documents and doing it manually.
    Is it possible, using PL/SQL, to update these links in these MS Word documents that are stored in Oracle? I have currently written a quick PL/SQL routine that will find the links and provide their location within the document, but I am not sure how I can update them. The problem, as I see it, is that if the characters that I am replacing differ in length than those that are currently in the existing document, then I would have to shift the remaining bytes of the document either left or right to preserve the integrity of the document.
    Is this possible, or should I pursue another option?

    It does not have to manual, but I think you will need to use word to modify and save the documents.
    The most automated process I can think of would be to write a client program to fetch a blob, run word, and have a word macro or add in to make the edits save, and then the client program updates with the new blob.
    With that number of documents, I would probably try to fetch a bunch of blobs and have word process them all before updating them for performance reasons.
    Unfortunately I would have no clue how to do the word automation, but I wouldn't touch those blobs using pl/sql

  • How to Convert a Word Document within BDN to PDF file

    Hi All,
    Currently, we have word documents stored within the business document navigator (Transaction OAOR) for our Materials.  We want to be able to share these documents with our customers through a Web Interface such as Web Dynpro; however, we need to convert them to a PDF file first.  Currently, we are obtaining the document contents in order to convert the word document to Binary.  A Sample of this code is listed below.  From this point, we are hoping to convert to PDF; however we are uncertain of how to do this.  Is there a standard function module or class that will perform this conversion of a Word document.  Any help will be greatly appreciated.  Thanks.
    *Get Information For BDS Form
      gs_doc_signature-prop_name = 'DESCRIPTION'.
      gs_doc_signature-prop_value = 'Description of Document'.
    *Create BDS Instance
    DATA gr_bds_instance TYPE REF TO cl_bds_document_set.
      IF gr_bds_instance IS INITIAL.
        CREATE OBJECT gr_bds_instance.
      ENDIF.
    *get the Document Contents
      CALL METHOD gr_bds_instance->get_info
        EXPORTING
          classname           = gc_docclass  "BOR Object BUS1001
          classtype           = gc_classtype  "BO for Business Object
          object_key          = gv_objkey      "Material Number i.e. 000000000010034717
        IMPORTING
          extended_components = gt_extended
        CHANGING
          components          = gt_doc_components
          signature           = gt_doc_signature
        EXCEPTIONS
          nothing_found       = 1
          error_kpro          = 2
          internal_error      = 3
          parameter_error     = 4
          not_authorized      = 5
          not_allowed         = 6.
    *Build the Object ID in order to Convert the Word Document to Binary
      READ TABLE gt_extended INTO gs_extended INDEX 1.
      gv_object_id-class = gs_extended-class.
      gv_object_id-objid = gs_extended-objid.
    *Convert the Word Document to Binary Format
      CALL FUNCTION 'SDOK_PHIO_LOAD_CONTENT'
        EXPORTING
          object_id                 = gv_object_id  "
      CLIENT                    = SY-MANDT
          raw_mode                  = 'X'
        TABLES
      FILE_ACCESS_INFO          =
          file_content_binary       = gt_binary
    *Convert to PDF!?!?!?!?
    John

    Hi
    Refer this thread [Convert MS Word .doc to PDF;
    Regards
    Raj

  • I want to know how to turn a word document into a jpeg so I can put the document on Facebook as a picture. I have made posters and if I do a print screen they are unable to be read, or if i turn it into a PDF there is no save as jpeg??

    I want to know how to turn a word document into a jpeg so I can put the document on Facebook as a picture. I have made posters and if I do a print screen they are unable to be read, or if i turn it into a PDF there is no save as jpeg??

    iOS device backups are stored in your iTunes library.
    Move your iTunes library to an external drive.

  • How to embed the Word Document and PDF file into Crystal report?

    How to embed the Word Document and PDF file into Crystal report?
    I have word doc which having 10 pages. I need to show all of the 10 pages at a time. I tried OLE object but problem is it shows only one page.
    Is there any solution to show word doc / PDF file in CR?

    Symptom :
    When embedding a pdf document into a Crystal Report, only the one page shows.
    Reproducing the Issue
    Environment:
    Crystal Reports OLE object
    Cause
    An OLE object only displays the first page.
    Resolution
    Embed multiple objects, one for each page
    Or
    Use a hyperlink to the object instead
    Hope this helps!
    Regards,
    Vinay

  • How do I find word documents on iCloud?

    I have logged on to icloud but when I click on iWork, the only tabs are for keynote, numbers and pages. There is no tab for word documents but then how do I access word documents on iCloud?

    I have no idea as I am not ever going to use a Cloud system for storing my personal files. I have computers for that. Your best bet would be to use Google and type in "Uploading files to Apple's iCloud system". I bet you will get all the info you could ever ask for.
    Good Luck and Best Wishes
    mgmf wrote:
    Oh ok, that might be it. But how do I upload things from the documents folder onto iCloud?

  • How to insert a word document or an RTF document into RichTextEditor?

    How to insert a word document or an RTF document into af:richTextEditor. I am using Apache POI for reading the Word document and getting its contents. I am able to display the whole content of the document except the table and image within the document. The data in the table is getting displayed as a string and not as a table inside the editor.
    Can we insert a word/RTF document into a rich text editor?
    Can we insert images into the rich text editor?
    The following is the code that I used. On clicking a button the word document has to be inserted into the <af:richTextEditor>.
    <af:richTextEditor id="rte1" autoSubmit="true"
    immediate="true"
    columns="110" rows="20">
    <af:dropTarget dropListener="#{SendEmail.richTextEditorDrop}">
    <af:dataFlavor flavorClass="java.lang.String"/>
    </af:dropTarget>
    </af:richTextEditor>
    <af:commandButton text="Insert at position" id="cb2">
    <af:richTextEditorInsertBehavior for="rte1" value="#{RichTextEditorUtil.docFile}"/>
    </af:commandButton>
    Java Code: I am using Apache POI for reading the word document.
    import org.apache.poi.hwpf.HWPFDocument;
    import org.apache.poi.hwpf.extractor.WordExtractor;
    public String getDocFile() {
    File docFile = null;
    WordExtractor docExtractor = null ;
    WordExtractor exprExtractor = null ;
    try {
    docFile = new File("C:/temp/test.doc");
    //A FileInputStream obtains input bytes from a file.
    FileInputStream fis=new FileInputStream(docFile.getAbsolutePath());
    //A HWPFDocument used to read document file from FileInputStream
    HWPFDocument doc=new HWPFDocument(fis);
    docExtractor = new WordExtractor(doc);
    catch(Exception exep)
    System.out.println(exep.getMessage());
    //This Array stores each line from the document file.
    String [] docArray = docExtractor.getParagraphText();
    String fileContent = "";
    for(int i=0;i<docArray.length;i++)
    if(docArray[i] != null)
    System.out.println("Line "+ i +" : " + docArray);
    fileContent += docArray[i] + "\n";
    System.out.println(fileContent);
    return fileContent;

    Hi,
    images are not yet supported. Its an open enhancement request for the rich text editor.
    For tables, it seems they are supported but in a basic way (just HTML 4 style) if I interpret the tag documentation correct
    http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e12419/tagdoc/af_richTextEditor.html
    Frank

  • How to display a word document in KM as html format

    Hi
    I developed a portal application in that i am displaying word document using IFrames, from my application i am uploading word document and saving those document in KM
    Requirement is that i need to provide an option called "HTML Version" to show this word document in html.
    Thanks
    Rudradev.

    Hi E. van der Palen ,
    I did it using TREX API
    Thanks & Regards
    Rudra

  • How to Append two  word documents into single  using   java

    How to Append two word documents into single using java
    we tried this but it's not append the one word document to other
    source code:public class AppendTwoWordFiles {
         public static void main(String []arg)throws IOException
              FileInputStream fi=null;
              FileOutputStream fo=null;
              try {
                   System.out.println("Enter the source file name u want to append");
                   BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
                   File f1=new File(br.readLine().toString());
                   System.out.println("Enter the Destination file name ");
                   File f2=new File(br.readLine().toString());
                   fi = new FileInputStream(f1);
                   fo = new FileOutputStream(f2,true);
                   byte b[]=new byte[2];
                   while((fi.read(b))!=-1);
              fo.write(b);
    System.out.println("Successfully append the file");
              } catch (FileNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              finally{
              fi.close();
              fo.close();
    plz reply me quickly ,,,what can i follow

    Use this code ..
    and give the path of the both file like this.....
    source file ---- C:/workspace/Practice/src/com/moksha/ws/test/practice.text
    destination file ---- C:/workspace/City/src/com/moksha/ws/test/practice1.text
    import java.io.*;
    public class AppendTwoWordFiles {
         public static void main(String[] arg) throws IOException {
              FileInputStream fi = null;
              FileOutputStream fo = null;
              try {
                   System.out.println("Enter the source file name u want to append");
                   BufferedReader br = new BufferedReader(new InputStreamReader(
                             System.in));
                   File f1 = new File(br.readLine().toString());
                   System.out.println("Enter the Destination file name ");
                   File f2 = new File(br.readLine().toString());
                   fi = new FileInputStream(f1);
                   fo = new FileOutputStream(f2, true);
                   byte b[] = new byte[2];
                   int len = 0;
                   while ((len = fi.read(b)) > 0) {
                        fo.write(b, 0, len);
                   System.out.println("Successfully append the file");
              } catch (FileNotFoundException e) {
                   e.printStackTrace();
              } catch (IOException e) {
                   e.printStackTrace();
              } finally {
                   fi.close();
                   fo.close();
    }

  • How to Show floders and documents as a tree structure from path only

    sir,
    I am doing system side project using Java..
    so i want to know how to show folders and documents as tree structure format..
    plz give your idea regarding this?

    See for example Tree taglib in Coldtags suite:
    http://www.servletsuite.com/jsp.htm

  • HT1284 How can I backup word documents and not have them crowd my screen? Thanks.

    Hi. How can I backup word documents and not have them crowd my screen? I know, you guessed it. I'm a novice, but not ashamed!

    Please explain what you mean when you say backup Word documents crowds your screen.
    I don't see any connection between backup and your screen.
    Allan

  • How to convert a Word Document to SAP SCript standard text.

    Hi team,
    Does any one know how to convert a word document or text in Word format to standard text.
    So that we can use that standard text in Script output.
    This might be very useful if we need to convert a lot of text into standard text.

    Hi,
    Create the name of the standard text you want in SO10.
    When the editor is called up, select Text -> Upload and then browse for your file(s). Must be saved in RTF format in Word remember.
    Cheers
    Colin.

Maybe you are looking for

  • Why can't i log into my iMessage

    Cant log into my imessage or facetime, server difficulties keeps appearing, anyone else having these problems

  • Keys provided by school do not work; where can I get help?

    Hello, I attend an art college currently that provided students with a copy of photoshop cs6 and a limited amount of creative cloud as long as we attend. However, I'm unable to make the new cs6 work. Who can I speak to? I dislike forms because I don'

  • EREC: An error occurred when you tried to insert infotype 1001 in IDOC

    Hello Experts, I have standalone e-Recruitment system and separate SAP HR system. I have ALE configuration done to talk both system. In the Initial Transfer, I ran PFAL in HR system in 5 steps. Step 1  Execute PFAL (RHALEINI)for Obj Type O, Infotype

  • Problem with thumbnails

    Hi, I'm getting a rather worrying result when the wiki creates thumbnails for images and I wondered if other people are seeing it too. If I upload a relatively large jpg to the site, ca. 270k, it creates a thumbnail (as it should) However, the thumbn

  • Downloading Mountain Lion - problems with slow DSL

    Since we live in a rural area, my friends (who have a new iMac) are having problems downloading the Mountain Lion file.They are on the end of a DSL line feed and get a weak signal. Can I download the file on my computer and then install the file on t