Problem Loading Word documents in BLOB columns

Hi
I tried loading the documents in the BLOB column, then indexing and then text serach, but the query does not work or guess that the document does not get loaded
The table structure is
table: Content
feilds
id number (10) pk
author varchar2(30)
doc_name varchar2(60)
document BLOB default empty_blob()
loaded data with SQL loader and the file details are below
the load1.ctl file
LOAD DATA
INFILE 'd:\intermedia\data1.dat'
INTO TABLE contents
APPEND
FIELDS TERMINATED BY ','
(id SEQUENCE (MAX,1),
author ,
doc_name
LOBFILE (CONSTANT 'c:\nandeep\jun_news.doc') TERMINATED BY EOF)
data1.dat contents is as follows
nandeep,june news,c:\nandeep\jun_news.doc,
Any reason why it does not work or what could be the alternative
-nandeep
null

Your are in the wrong Forum. Documents cannot be loaded in iFS using SQL*LOADER

Similar Messages

  • I have a question for you: Inserting Word document in BLOB column

    Hey Experts,
    I have found a good info and a sample on how to achieve this on
    http://www.sys-con.com/java/source/5-6/code.cfm?Page=76.
    declare
    f_lob bfile;
    b_lob blob;
    begin
    insert into sam_emp(empno,ename,resume)
    values ( 9001, 'Samir',empty_blob() )
    return risumi into b_lob;
    f_lob := bfilename( 'MY_FILES', 'MyResume.doc' );
    dbms_lob.fileopen(f_lob, dbms_lob.file_readonly);
    dbms_lob.loadfromfile
    ( b_lob, f_lob, dbms_lob.getlength(f_lob) );
    dbms_lob.fileclose(f_lob);
    commit;
    end;
    I have a jsp project and the users ( on the client side)must be
    able to create a word document and send it to the server with an
    uplaod servlet. With another servlet or jsp i want to process
    this word document in BLOB column using JAVA. The sample above
    uses PL/SQL to achieve this. Is there a way i can do this in my
    servlet/jsp to do the same thing?
    Any hints are welcome!

    The option should be visible here: http://support.mozilla.com/en-US/kb/Printing%20a%20web%20page#w_print-window-settings
    Print range section - Lets you specify which pages of the current web page are printed:
    * Select '''All''' to print everything.
    * Select '''Pages''' and enter the range of pages you want to print. For example, selecting "from 1 to 1" prints the first page only.
    * Select '''Selection''' to print only the part the page you've highlighted.
    Does it work for you?

  • Persist document in BLOB column problem

    Hi all,
    I'm having problem with persisting document in BLOB column.
    Using debuger I checked that document.doc contains correctly uploaded file before persist. There are other attributes of document and they are persisted correctly, but when I check blob size in database it size is 1byte which is incorrect.
    After I persist second file, first one get his correct size value, and size of second one is 1byte.
    If I stop weblogic server, second value will never be populated. If I only restart application without restarting server, and then upload third document, size of second one will be corrected.
    Oracle JDeveloper 11g R1 11.1.1.2.0
    Oracle DataBase 10gR2
    Using ADF 11g RC & EJB
    I set id manually.
    Entity Document.java:...
    @Entity
    @NamedQueries({
      @NamedQuery(name = "Document.findAll", query = "select o from Document o")
    public class Document implements Serializable {
        @Id
        private Long id;
        @Lob
        private byte[] doc;
        private String title;
        private String type;
    }Here is persistence.xml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
                 version="1.0">
      <persistence-unit name="Model">
        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
        <jta-data-source>jdbc/FileUDS</jta-data-source>
        <class>fu.model.entity.Document</class>
        <properties>
          <property name="eclipselink.target-server" value="WebLogic_10"/>
          <property name="javax.persistence.jtaDataSource" value="jdbc/FileUDS"/>
        </properties>
      </persistence-unit>
    </persistence>Here is sample project with DDL for document table:[url http://uploading.com/files/52m65757/TestFileUpload.zip]TestFileUpload.zip

    Finest log when it doesn't work:
    [EL Finest]: 2010-09-22 15:01:12.732--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Begin deploying Persistence Unit Model; state Predeployed; factoryCount 1
    [EL Finest]: 2010-09-22 15:01:12.748--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Begin weaver class transformer processing class [fu.model.entity.Dummy].
    [EL Finest]: 2010-09-22 15:01:12.748--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Weaved persistence (PersistenceEntity) [fu.model.entity.Dummy].
    [EL Finest]: 2010-09-22 15:01:12.748--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Weaved change tracking (ChangeTracker) [fu.model.entity.Dummy].
    [EL Finest]: 2010-09-22 15:01:12.748--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Weaved fetch groups (FetchGroupTracker) [fu.model.entity.Dummy].
    [EL Finest]: 2010-09-22 15:01:12.748--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--End weaver class transformer processing class [fu.model.entity.Dummy].
    [EL Finer]: 2010-09-22 15:01:12.794--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Could not initialize Validation Factory. Encountered following exception: java.lang.NoClassDefFoundError: javax/validation/Validation
    [EL Finest]: 2010-09-22 15:01:12.81--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.target-server; value=WebLogic_10; translated value=org.eclipse.persistence.platform.server.wls.WebLogic_10_Platform
    [EL Finest]: 2010-09-22 15:01:12.81--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.logging.level; value=FINEST; translated value=FINEST
    [EL Finest]: 2010-09-22 15:01:12.81--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.logging.level; value=FINEST; translated value=FINEST
    [EL Finest]: 2010-09-22 15:01:12.81--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.target-database; value=Oracle10g; translated value=org.eclipse.persistence.platform.database.oracle.Oracle10Platform
    [EL Finest]: 2010-09-22 15:01:12.826--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=javax.persistence.jtaDataSource; value=jdbc/OracleTextDS
    [EL Finest]: 2010-09-22 15:01:12.841--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.cache.shared.default; value=false; translated value=false
    [EL Finest]: 2010-09-22 15:01:12.841--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.jdbc.native-sql; value=true
    [EL Info]: 2010-09-22 15:01:12.873--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--EclipseLink, version: Eclipse Persistence Services - 1.2.0.v20091016-r5565
    [EL Info]: 2010-09-22 15:01:12.873--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Server: WebLogic Server 10.3.2.0  Tue Oct 20 12:16:15 PDT 2009 1267925
    [EL Config]: 2010-09-22 15:01:12.888--ServerSession(32436700)--Connection(25502890)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--connecting(DatabaseLogin(
         platform=>Oracle10Platform
         user name=> ""
         connector=>JNDIConnector datasource name=>jdbc/OracleTextDS
    [EL Config]: 2010-09-22 15:01:12.951--ServerSession(32436700)--Connection(31684552)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Connected: jdbc:oracle:thin:@itimserver:1521:omnidb
         User: OTEXT
         Database: Oracle  Version: Oracle Database 10g Release 10.2.0.1.0 - Production
         Driver: Oracle JDBC driver  Version: 11.1.0.7.0-Production
    [EL Config]: 2010-09-22 15:01:12.966--ServerSession(32436700)--Connection(13432760)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--connecting(DatabaseLogin(
         platform=>Oracle10Platform
         user name=> ""
         connector=>JNDIConnector datasource name=>jdbc/OracleTextDS
    [EL Config]: 2010-09-22 15:01:12.966--ServerSession(32436700)--Connection(10190221)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Connected: jdbc:oracle:thin:@itimserver:1521:omnidb
         User: OTEXT
         Database: Oracle  Version: Oracle Database 10g Release 10.2.0.1.0 - Production
         Driver: Oracle JDBC driver  Version: 11.1.0.7.0-Production
    [EL Info]: 2010-09-22 15:01:13.576--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--file:/C:/oracle/Middleware/jdeveloper/system11.1.1.2.36.55.36/o.j2ee/drs/TestFileUpload/ModelEJB.jar/-Model login successful
    [EL Finest]: 2010-09-22 15:01:13.591--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The applicationName for the MBean attached to session [file:/C:/oracle/Middleware/jdeveloper/system11.1.1.2.36.55.36/o.j2ee/drs/TestFileUpload/ModelEJB.jar/-Model] is [TestFileUpload]
    [EL Finest]: 2010-09-22 15:01:13.591--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The moduleName for the MBean attached to session [file:/C:/oracle/Middleware/jdeveloper/system11.1.1.2.36.55.36/o.j2ee/drs/TestFileUpload/ModelEJB.jar/-Model] is [TestFileUpload-ViewController-context-root]
    [EL Finest]: 2010-09-22 15:01:13.591--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--End deploying Persistence Unit Model; state Deployed; factoryCount 1
    [EL Finer]: 2010-09-22 15:01:13.623--ServerSession(32436700)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--client acquired
    [EL Finer]: 2010-09-22 15:01:13.623--UnitOfWork(9288343)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX binding to tx mgr, status=STATUS_ACTIVE
    [EL Finest]: 2010-09-22 15:01:13.623--UnitOfWork(9288343)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--PERSIST operation called on: fu.model.entity.Document@d52347.
    [EL Finer]: 2010-09-22 15:01:13.638--UnitOfWork(9288343)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX beforeCompletion callback, status=STATUS_ACTIVE
    [EL Finer]: 2010-09-22 15:01:13.638--UnitOfWork(9288343)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--begin unit of work commit
    [EL Finer]: 2010-09-22 15:01:13.654--ClientSession(22623994)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX beginTransaction, status=STATUS_ACTIVE
    [EL Finest]: 2010-09-22 15:01:13.669--UnitOfWork(9288343)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Execute query InsertObjectQuery(fu.model.entity.Document@d52347)
    [EL Finest]: 2010-09-22 15:01:13.685--ClientSession(22623994)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--reconnecting to external connection pool
    [EL Fine]: 2010-09-22 15:01:13.685--ClientSession(22623994)--Connection(6662457)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--INSERT INTO DOCUMENT (ID, TITLE, DOC, TYPE) VALUES (?, ?, ?, ?)
         bind => [106, Oracle Text 106, [B@b48094, DOC]
    [EL Fine]: 2010-09-22 15:01:13.732--ClientSession(22623994)--Connection(6662457)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--SELECT DOC FROM DOCUMENT WHERE (ID = ?) FOR UPDATE
         bind => [106]
    [EL Finest]: 2010-09-22 15:01:13.873--ClientSession(22623994)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Writing BLOB value(size = 152,064 bytes) through the locator to the table field: DOC
    [EL Finer]: 2010-09-22 15:01:13.888--UnitOfWork(9288343)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX afterCompletion callback, status=COMMITTED
    [EL Finer]: 2010-09-22 15:01:13.888--UnitOfWork(9288343)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--end unit of work commit
    [EL Finer]: 2010-09-22 15:01:13.888--UnitOfWork(9288343)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--release unit of work
    [EL Finer]: 2010-09-22 15:01:13.888--ClientSession(22623994)--Thread(Thread[[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--client releasedFinest log when it works:
    [EL Finest]: 2010-09-22 15:09:29.741--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Begin deploying Persistence Unit Model; state Predeployed; factoryCount 1
    [EL Finer]: 2010-09-22 15:09:29.787--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Could not initialize Validation Factory. Encountered following exception: java.lang.NoClassDefFoundError: javax/validation/Validation
    [EL Finest]: 2010-09-22 15:09:29.803--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.target-server; value=WebLogic_10; translated value=org.eclipse.persistence.platform.server.wls.WebLogic_10_Platform
    [EL Finest]: 2010-09-22 15:09:29.803--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.logging.level; value=FINEST; translated value=FINEST
    [EL Finest]: 2010-09-22 15:09:29.803--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.logging.level; value=FINEST; translated value=FINEST
    [EL Finest]: 2010-09-22 15:09:29.803--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.target-database; value=Oracle10g; translated value=org.eclipse.persistence.platform.database.oracle.Oracle10Platform
    [EL Finest]: 2010-09-22 15:09:29.834--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=javax.persistence.jtaDataSource; value=jdbc/OracleTextDS
    [EL Finest]: 2010-09-22 15:09:29.834--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.cache.shared.default; value=false; translated value=false
    [EL Finest]: 2010-09-22 15:09:29.834--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.jdbc.native-sql; value=true
    [EL Info]: 2010-09-22 15:09:29.866--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--EclipseLink, version: Eclipse Persistence Services - 1.2.0.v20091016-r5565
    [EL Info]: 2010-09-22 15:09:29.866--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Server: WebLogic Server 10.3.2.0  Tue Oct 20 12:16:15 PDT 2009 1267925
    [EL Config]: 2010-09-22 15:09:29.881--ServerSession(29669964)--Connection(16935504)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--connecting(DatabaseLogin(
         platform=>Oracle10Platform
         user name=> ""
         connector=>JNDIConnector datasource name=>jdbc/OracleTextDS
    [EL Config]: 2010-09-22 15:09:29.944--ServerSession(29669964)--Connection(32957960)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Connected: jdbc:oracle:thin:@itimserver:1521:omnidb
         User: OTEXT
         Database: Oracle  Version: Oracle Database 10g Release 10.2.0.1.0 - Production
         Driver: Oracle JDBC driver  Version: 11.1.0.7.0-Production
    [EL Config]: 2010-09-22 15:09:29.944--ServerSession(29669964)--Connection(7874461)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--connecting(DatabaseLogin(
         platform=>Oracle10Platform
         user name=> ""
         connector=>JNDIConnector datasource name=>jdbc/OracleTextDS
    [EL Config]: 2010-09-22 15:09:29.944--ServerSession(29669964)--Connection(7387593)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Connected: jdbc:oracle:thin:@itimserver:1521:omnidb
         User: OTEXT
         Database: Oracle  Version: Oracle Database 10g Release 10.2.0.1.0 - Production
         Driver: Oracle JDBC driver  Version: 11.1.0.7.0-Production
    [EL Info]: 2010-09-22 15:09:30.428--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--file:/C:/oracle/Middleware/jdeveloper/system11.1.1.2.36.55.36/o.j2ee/drs/TestFileUpload/ModelEJB.jar/-Model login successful
    [EL Finest]: 2010-09-22 15:09:30.444--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The applicationName for the MBean attached to session [file:/C:/oracle/Middleware/jdeveloper/system11.1.1.2.36.55.36/o.j2ee/drs/TestFileUpload/ModelEJB.jar/-Model] is [TestFileUpload]
    [EL Finest]: 2010-09-22 15:09:30.444--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The moduleName for the MBean attached to session [file:/C:/oracle/Middleware/jdeveloper/system11.1.1.2.36.55.36/o.j2ee/drs/TestFileUpload/ModelEJB.jar/-Model] is [TestFileUpload-ViewController-context-root]
    [EL Finest]: 2010-09-22 15:09:30.444--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--End deploying Persistence Unit Model; state Deployed; factoryCount 1
    [EL Finer]: 2010-09-22 15:09:30.475--ServerSession(29669964)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--client acquired
    [EL Finer]: 2010-09-22 15:09:30.491--UnitOfWork(5094647)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX binding to tx mgr, status=STATUS_ACTIVE
    [EL Finest]: 2010-09-22 15:09:30.491--UnitOfWork(5094647)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--PERSIST operation called on: fu.model.entity.Document@1b12136.
    [EL Finest]: 2010-09-22 15:09:30.491--UnitOfWork(5094647)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--PERSIST operation called on: fu.model.entity.Dummy@1fc0ac1.
    [EL Finer]: 2010-09-22 15:09:30.491--UnitOfWork(5094647)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX beforeCompletion callback, status=STATUS_ACTIVE
    [EL Finer]: 2010-09-22 15:09:30.491--UnitOfWork(5094647)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--begin unit of work commit
    [EL Finer]: 2010-09-22 15:09:30.506--ClientSession(3813659)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX beginTransaction, status=STATUS_ACTIVE
    [EL Finest]: 2010-09-22 15:09:30.537--UnitOfWork(5094647)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Execute query InsertObjectQuery(fu.model.entity.Document@1b12136)
    [EL Finest]: 2010-09-22 15:09:30.553--ClientSession(3813659)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--reconnecting to external connection pool
    [EL Fine]: 2010-09-22 15:09:30.553--ClientSession(3813659)--Connection(31488401)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--INSERT INTO DOCUMENT (ID, TITLE, DOC, TYPE) VALUES (?, ?, ?, ?)
         bind => [107, Oracle Text 107, [B@88e6ad, DOC]
    [EL Fine]: 2010-09-22 15:09:30.584--ClientSession(3813659)--Connection(31488401)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--SELECT DOC FROM DOCUMENT WHERE (ID = ?) FOR UPDATE
         bind => [107]
    [EL Finest]: 2010-09-22 15:09:30.725--ClientSession(3813659)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Writing BLOB value(size = 152,064 bytes) through the locator to the table field: DOC
    [EL Finest]: 2010-09-22 15:09:30.725--UnitOfWork(5094647)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Execute query InsertObjectQuery(fu.model.entity.Dummy@1fc0ac1)
    [EL Fine]: 2010-09-22 15:09:30.725--ClientSession(3813659)--Connection(31488401)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--INSERT INTO DUMMY (ID, DUMMYCOLUMN, DOCUMENT_ID) VALUES (?, ?, ?)
         bind => [107, null, null]
    [EL Finer]: 2010-09-22 15:09:30.772--UnitOfWork(5094647)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX afterCompletion callback, status=COMMITTED
    [EL Finer]: 2010-09-22 15:09:30.772--UnitOfWork(5094647)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--end unit of work commit
    [EL Finer]: 2010-09-22 15:09:30.772--UnitOfWork(5094647)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--release unit of work
    [EL Finer]: 2010-09-22 15:09:30.772--ClientSession(3813659)--Thread(Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--client releasedRegards,
    Alexandar

  • Load word document file into database

    Hello,
    Kindly tell me how do i load word document file into my database.

    you can use BLOB columns to store the word document in the database
    But not sure how are you trying to load (i.e what is your application front end)
    Oracle Forms, Java etc.
    so based on that specific solution can be given.

  • Problems printing word documents

    Hello
    My friend as a powerbook and a HP printer, and is having problems printing word documents, nothing shows up in preview when you press print just a blank page pops out. You can print pictures fine from iPhoto, any ideas?
    Popping over tomorrow to see if I can get it working. My friend emailed a document and I had no trouble printing it.
    Paul.

    Hello MaradaMMA,
    Welcome to the forum.
    Can't test at the moment, but, if after clicking the print
    button, in the option tab, can you select "as laid out on screen",
    then click Print?
    Hope this works, if not, please post back
    Regards,
    Brian

  • Problem displaying PDF stored in BLOB column

    Hello everyone.
    I've been trying to follow this tutorial http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::p11_question_id:232814159006 on displaying PDFs stored in BLOB columns. This is being performed on Apex 4.2, with my DB running 11g. I've got my procedure, which I'll post below:
    create or replace procedure "PDF" (p_id IN gvo_documents.doc_id%type)
    is
        l_lob    blob;
        l_amt    number default 30;
        l_off   number default 1;
        l_raw   raw(4096);
    begin
        select contents into l_lob
            from gvo_documents
             where doc_id = p_id;
    -- make sure to change this for your type!
        owa_util.mime_header( 'application/pdf' );
        begin
            loop
              dbms_lob.read( l_lob, l_amt, l_off, l_raw );
              htp.prn( utl_raw.cast_to_varchar2( l_raw ) );
              l_off := l_off+l_amt;
              l_amt := 4096;           
        end loop;
            exception
               when no_data_found then
                  NULL;
            end;
    end;
    I am trying to run this through a PL/SQL dynamic region and while I don't receive any error's, the content displayed is a huge mess of garbled text and odd characters. I've tried to run this procedure on numerous other document types, including word files and jpeg images, all with the necessary changes in my procedure, and regardless of what I use, I still get a large mess of strange characters. Does anyone have any information or ideas about why this is happening?

    If I understand correctly, your requirements needs to be broken down into two problems:
    1) click link that pops up a window displaying a new APEX page
    2) an APEX page the displays the document, not downloads it.
    I haven't done #1 (yet).
    However, you may be able to generate a URL that points to the new page as part of the SELECT statement for the Report.
    This has a related question, but no answer yet:
    open pdf in popup browser window
    The key is target="_blank" for the anchor tag.
    To generate the URL, you should use the APEX_UTIL.prepare_URL() function.
    If that doesn't work, a Dynamic Action that does some magical JavaScript stuff may be needed.
    For #2, I lost the URL that showed how to display a PDF as part of a "form" page.
    From what I remember:
    Start with a blank page with one blank HTML region (all the Items go in the HTML region)
    Add an Item for the PK/Doc_ID
    part I forgot Create a Data Manipulation Process
    - Automated Row Fetch
    - On Load - After Header
    - (stuff for your table/view)
    part I forgot Create an (I believe) "File Browser" item type. For Settings:
    - Storage Type "BLOB column specified in Item Source" (and place the column name of the BLOB there)
    - MIME Type Column: (column name) -- since you have multiple types, this is a MUST HAVE
    - Filename Column: (column name) -- I highly recommend you have this.
    - Content Disposition == INLINE <-- this is the kicker
    Also, you will need a Browser Plugin for each of the MIME Types (otherwise, the browser may try to 'download' the file)
    Browsers can handle Image types internally. Adobe's plugin can handle PDFs. I don't know about Word/Excel.
    Again, I don't remember the exact details, but that should cover most of it.
    MK

  • Need to create link to Word Doc in blob column in search results report

    I got the Oracle Text boolean search of word documents in a blob column of a table working.
    Now I need to be able to create a link in the results report.
    I know that Oracle creates a link for each document in the column when you attach a file, I just need to know what the link should be to allow users to open the document in the search results report.
    Right now the application is set to do a search in the attached word documents, and in the results window it shows the names of the people who match the search, but it won't allow me to create a link to their resume in the results report.
    the name of the table is CONTRACTOR_LIST and the blob column is RESUME.
    How would you go about creating a simple link to the word file in the results window?
    Here is the code for the query
    select score(1) relevance, Name, Resume
    from contractor_list
    where CONTAINS (resume, :P1_SEARCH, 1) > 0
    order by 1 desc
    That works, but I can't get it to link to the resume file.
    Here is the code I'm using for the link
    javascript:popupURL(&quot;#RESUMEL#&quot;)
    This just give me an error page and the the link is
    http://server-namer:8080/apex/[datatype]
    the error is
    Bad Request
    The HTTP client sent a request that this server could not understand.
    Thanks again!
    Edited by: gjones77 on Dec 2, 2008 6:14 AM
    Edited by: gjones77 on Dec 2, 2008 7:08 AM

    It is within the table I believe (I'm not a DBA or a developer) since I created a BLOB column and then used the file browse feature to allow users to attach a resume to the table in order to be able to perform a search of the attached documents.
    I'm just having a hard time pointing the link in the search results report to the document in the blob column.
    The information on that page is great if you're trying to create a link to the document on the initial report.
    But I created a query using Oracle Text to run a report that does a boolean search of the attached word documents in the table.
    When it displays the search results, it doesn't create a link to the document and I can't figure out how to do it.
    Here's a link the the instructions I used to create the initial search report with Oracle Text, mind you I only created the index and query, I didn't add in all the link data since they're using documents on websites and I'm using documents in a table.
    http://www.oracle.com/technology/products/database/application_express/pdf/apex_text_application_v1.6.pdf
    If you can help me with this I'd really appreciate it.
    Thanks again.
    Greg
    Edited by: gjones77 on Dec 2, 2008 8:14 AM

  • Using JSP/Servlet to write Word Document to BLOB

    Hi
    I need some help pls
    When I use a normal class with a main method, it loads the word document into a blob and I can read this 100%.Stunning.
    With a JSP/Servlet I cannot get the document out again. The "format" seems to be lost.
    Any ideas,help greatly appreciated:
    Here is the Main class that works:
    package mypackage1;
    import java.io.OutputStream;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.PrintWriter;
    import java.io.IOException;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileReader;
    import java.io.FileNotFoundException;
    import java.io.Writer;
    import java.sql.Connection;
    import oracle.jdbc.*;
    import oracle.jdbc.OracleResultSet;
    import oracle.sql.BLOB;
    import org.apache.log4j.Logger;
    import Util_Connect.DataBase;
    public class TestLOB
    //static final Logger logger = Logger.getLogger("test");
    public TestLOB()
    public static void main(String args[])
    TestLOB testLOB = new TestLOB();
    testLOB.TestLOBInsert("c:\\my_data\\callcenterpilot.doc");
    public void TestLOBInsert(String fileName)
    Connection conn = getConnection("wizard");
    BLOB blob = null;
    try
    conn.setAutoCommit(false);
    String cmd = "SELECT * FROM so_cs.testlob WHERE docno = 1 FOR UPDATE";
    PreparedStatement pstmt = conn.prepareStatement(cmd);
    ResultSet rset = pstmt.executeQuery(cmd);
    rset.next();
    blob = ((OracleResultSet)rset).getBLOB(2);
    File binaryFile = new File(fileName);
    System.out.println("Document length = " + binaryFile.length());
    FileInputStream instream = new FileInputStream(binaryFile);
    OutputStream outstream = blob.getBinaryOutputStream();
    int size = blob.getBufferSize();
    byte[] buffer = new byte[size];
    int length = -1;
    while ((length = instream.read(buffer)) != -1)
    outstream.write(buffer, 0, length);
    instream.close();
    outstream.close();
    conn.commit();
    closeConnection(conn);
    catch (Exception ex)
    System.out.println("Error =- > "+ex.toString());
    private Connection getConnection(String dataBase)
    Connection conn = null;
    try
    DriverManager.registerDriver(new OracleDriver());
    conn = DriverManager.getConnection("jdbc:oracle:thin:@oraclu5:1600:dwz110","so_cs","so_cs");
    catch (Exception ex)
    System.out.println("Error getting conn"+ex.toString());
    return conn;
    private void closeConnection(Connection conn)
    if (conn != null)
    try
    conn.close();
    catch (Exception se)
    System.out.println("Error closing connection in get last imei"+se.toString());
    Works fine:
    Here is the display servlet: Works when main class inserts file
    package mypackage1;
    import java.io.InputStream;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.PrintWriter;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileReader;
    import java.io.FileNotFoundException;
    import java.io.Writer;
    import java.sql.Connection;
    import oracle.jdbc.*;
    import oracle.jdbc.OracleResultSet;
    import oracle.sql.BLOB;
    import org.apache.log4j.Logger;
    import Util_Connect.DataBase;
    public class DisplayLOB extends HttpServlet
    private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
    static final Logger logger = Logger.getLogger(DisplayLOB.class);
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    //response.setContentType(CONTENT_TYPE);
    //PrintWriter out = response.getWriter();
    Connection conn = null;
    PreparedStatement pstmt = null;
    try
    conn = getConnection("wizard");
    //out.println("<html>");
    //out.println("<head><title>DisplayLOB</title></head>");
    //out.println("<body>");
    //out.println("<p>The servlet has received a POST. This is the reply.</p>");
    InputStream is=null;
    oracle.sql.BLOB blob=null;
    response.setContentType("application/msword");
    //response.setContentType("audio/mpeg");
    OutputStream os = response.getOutputStream();
    String term = "1";
    String query = "SELECT docdetail FROM testlob WHERE docno = 1";
    pstmt = conn.prepareStatement(query);
    ResultSet rs = pstmt.executeQuery();
    while (rs.next())
    blob=((OracleResultSet)rs).getBLOB(1);
    is=blob.getBinaryStream();
    int pos=0;
    int length=0;
    byte[] b = new byte[blob.getChunkSize()];
    while((length=is.read(b))!= -1)
    pos+=length;
    os.write(b);
    }//try
    catch (Exception se)
    se.printStackTrace();
    finally
    try
    pstmt.close();
    catch (Exception ex)
    System.out.println("Error closing pstmt "+ex.toString());
    //out.println("</body></html>");
    //out.close();
    private Connection getConnection(String dataBase)
    Connection conn = null;
    try
    conn = DataBase.getPoolConnection(dataBase);
    catch (Exception se)
    logger.fatal("Error getting connection: ",se);
    return conn;
    private void closeConnection(Connection conn)
    if (conn != null)
    try
    conn.close();
    catch (Exception se)
    logger.error("Error closing connection in get last imei",se);
    Here is JSP/Servlet
    <%@ page import="org.apache.log4j.*"%>
    <%@ page contentType="text/html; charset=ISO-8859-1" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>untitled</title>
    <title>Wizard SMS Interface</title>
    <link rel='stylesheet' type='text/css' href='main1.css'>
    <script language='JavaScript' src='copyright.js'></script>
    </head>
    <pre>
    <%
    //HTTP 1.1
    response.setHeader("Cache-Control","no-cache");
    //HTTP 1.0
    response.setHeader("Pragma","no-cache");
    //prevents caching at the proxy server
    response.setDateHeader ("Expires", 0);
    Logger logger = Logger.getLogger("co.za.mtn.wizard.administration.admin01.jsp");
    %>
    </pre>
    <body>
    <FORM ACTION="/WizardAdministration/uploadfile"
    METHOD="POST"
    ENCTYPE="multipart/form-data">
    <INPUT TYPE="FILE" NAME="example">
    <INPUT TYPE="SUBMIT" NAME="button" VALUE="Upload">
    </FORM>
    </body>
    </html>
    <font> <b>Copyright &copy;
    <script>
    var LMDate = new Date( document.lastModified );
    year = LMDate.getYear();
    document.write(display(year));
    </script>
    Mobile Telephone Networks.
    <p align="left"><i><b><font face="Georgia, Times New Roman, Times, serif" size="1"></font></b></i></p>
    package co.za.mtn.wizard.admin;
    import java.io.InputStream;
    import java.util.Enumeration;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.PrintWriter;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileReader;
    import java.io.FileNotFoundException;
    import java.io.Writer;
    import java.sql.Connection;
    import oracle.jdbc.OracleResultSet;
    import oracle.sql.BLOB;
    import org.apache.log4j.Logger;
    import Util_Connect.DataBase;
    public class UploadFile extends HttpServlet
    private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
    //static final Logger logger = Logger.getLogger(UploadFile.class);
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    String headerName = null;
    Enumeration en = request.getHeaderNames();
    try
    while ( en.hasMoreElements() )
    Object ob = en.nextElement();
    headerName = ob.toString();
    System.out.println("Value for headerNAme is >"+headerName+"<");
    String aaa = request.getHeader(headerName);
    System.out.println("Value for aa is >"+aaa+"<");
    catch (Exception ex)
    System.out.println("Error in extracting request headers"+ex.toString());
    Connection conn = getConnection("wizard");
    BLOB blob = null;
    try
    conn.setAutoCommit(false);
    String cmd = "SELECT * FROM so_cs.testlob WHERE docno = 1 FOR UPDATE";
    PreparedStatement pstmt = conn.prepareStatement(cmd);
    ResultSet rset = pstmt.executeQuery(cmd);
    rset.next();
    blob = ((OracleResultSet)rset).getBLOB(2);
    //File binaryFile = new File("h:\\callcenterpilot.doc");
    //System.out.println("Document length = " + binaryFile.length());
    //FileInputStream instream = new FileInputStream(binaryFile);
    response.setHeader("Content-Type","application/vnd.ms-word");
    String contentType = request.getContentType();
    System.out.println("Content type received in servlet is >"+contentType+"<");
    ServletInputStream instream = request.getInputStream();
    OutputStream outstream = blob.getBinaryOutputStream();
    int size = blob.getBufferSize();
    byte[] buffer = new byte[size];
    int length = -1;
    while ((length = instream.read(buffer)) != -1)
    outstream.write(buffer, 0, length);
    instream.close();
    outstream.close();
    conn.commit();
    closeConnection(conn);
    response.setContentType(CONTENT_TYPE);
    PrintWriter out = response.getWriter();
    catch (Exception ex)
    System.out.println("Error =- > "+ex.toString());
    //out.println("</body></html>");
    //out.close();
    private Connection getConnection(String dataBase)
    Connection conn = null;
    try
    conn = DataBase.getPoolConnection(dataBase);
    catch (Exception se)
    System.err.println("Error getting connection: "+se.toString());
    return conn;
    private void closeConnection(Connection conn)
    if (conn != null)
    try
    conn.close();
    catch (Exception se)
    System.err.println("Error closing connection in get last imei"+se.toString());
    This is what the display servlet is showing when the JSP/Servlet insert the document
    -----------------------------7d31422224030e
    Content-Disposition: form-data; name="example"; filename="H:\(your name) Skills Matrix.doc"
    Content-Type: application/msword
    �� ࡱ � > ��     � � ���� � � ���������������������
    Tks
    Andre

    hello,
    there are multiple documents out there, describing the oracle reports server setup. try doc.oracle.com for documentation.
    also it is part of the online-documentation.
    you need to install 9iAS enterprise edition. the server is pre-configured and will listen to the url http://yourserver/dev60cgi/rwcgi60.exe
    passing only this url you will get a help-screen, describing the syntax.
    regards,
    the oracle reports team

  • Save Documents on BLOB Columns

    Please, help me with this:
    I created a new table:
    CREATE TABLE testfile
    (file blob);
    and created a new Form with Ole Container Item to save document on Database.
    I can insert new Word Document and edit this doing double click on the container, but, when save (commit) record on the database, I can't edit again the Word document, becuase Forms show next error:
    FRM-40501: ORACLE error: unable to reserve record for update or delete
    I checked all Block and Item Properties and all is Ok
    Insert Allowed = Yes
    Update Allowed = Yes
    Delete Allowed = Yes
    Locking Mode = Automatic
    Key Mode = Automatic
    I'm using Oracle8i Enterprise Edition Release 8.1.7.3.0
    and forms 6i (Version 6.0.8.8.0)
    Thanks for you help

    Try initializing the blob column to Empty blob and then try saving

  • ORDDoc - Loading Word Document - Please Help

    Hi
    I am trying to upload the word document (doc format) to the table i have in oracle database. The table has the column of type OrdDoc.
    I am using Intermedia Java API to load the word file from my local system to the database. The upload is happening successfully but when i try to retreive the document i see that its empty and even the properties (mimetype, format) of the document are null.
    I would appreciate if anyone of you could please tell me what am i doing wrong and how can i upload the file correctly.
    Below is more information about table structure and also the java code.
    Table Structure
    TableName: DocTable
    ColumnName Type
    DocId NUMBER
    DocName VarChar2(40)
    DOCUMENT ORDSYS.ORDDoc
    Below are some lines from my code
    String insertDocRecord_Qry = "Insert into DocTable (docId,docName,document) values (1,"FirstDoc ",ORDSYS.ORDDoc.init())";
    PreparedStatement insertStmt = conn.prepareStatement(insertDocRecord_Qry);
    insertStmt.execute();
    String selectDocForUpdate_Qry = "select document from DocTable where docId = 1 for update";
    OracleResultSet rset = (OracleResultSet)stmt.executeQuery(selectDocForUpdate_Qry);
    rset.next();
    OrdDoc docProxy = (OrdDoc)rset.getORAData("document", OrdDoc.getORADataFactory());
    rset.close();
    docProxy.loadDataFromFile("C:/Files/MyFirstDoc.doc");
    String updateDoc_Qry = "update DocTable set document=? where docId=1";
    opstmt = (OraclePreparedStatement)conn.prepareStatement(updateDoc_Qry);
    opstmt.setORAData(1, docProxy);
    opstmt.execute();
    opstmt.close();
    PLEASE HELP ME FIGURE OUT WHAT AM I DOING WRONG IN ABOVE CODE.
    ABOVE Code doesnt throw an error when executed but when i try to retireve the properties of the document that gets loaded in to the DocTable all i see is null values and 0 content length.
    Thanks for your help in advance
    -L

    Hi Mavris
    Thanks for the reply.
    In my example the reason i did not invoke setProperties() method is because the setProperties method exposed in OrdDoc class is not same as the setProperties method in OrdAudio or OrdImage.
    In OrdDoc class setProperties(byte[][] ctx,boolean setComments) takes two arguments where as setProperties() in OrdAudio and OrdImage does not take any arguments.
    byte[ ] ctx[ ] = new byte [4000][1];
    When i tried to use setProperties(ctx,true) in OrdDoc i was getting an error.
    Can you please tell if this is the correct way to invoke setProperties on OrdDoc in Java Program?
    Regarding the list of format that Intermedia Understands, the Appendices A, B and C in Intermedia Refererence talks only about Audio, Image and Video. It doesnt have any details about Document (pdf, txt, doc) files. Can you please tell where can i look for the list of formats that intermedia understands for OrdDoc?
    Since the dataType is OrdDoc in my table. How do i check the LOB length?
    I tried it using Intermedia Java API by calling getContentLength method after retreiving the OrdDoc column from resultset but it has a value of '0'. So am not sure why the document is not getting loaded.
    Please help me resolve this issue.
    Thanks

  • Problem converting Word document with TOC table

    Hello,
             I am using MsWord 2003 and Acrobat 9 in Windows 7 Ultimate 64 bits.
    I have created the manual using Word, I set Heading (s) with 3 levels deep and created TOC in Word.
    It looks as designed. There are Titles, Subtitles and Subtiles (3rd level).
    TOC in Word works fine. No problem.
    In PDFMaker options under Bookmarks tab I set TOC 1 with 3 levels.
    However, after converting the whole document into PDF, the Bookmarks look very strange.
    They contain only Titles (no subtitles at all), each bookmark line ends with some number 3, 4 or 5 which I do not have idea what are they and those bollmarks point to the TOC page not to the page they should have.
    What is wrong and how can I correct that?
    Thanks,
    jas
    Added:
    I have read many of posts having similiar problems and tried all the suggestions posted.
    I tried:
    1.
    Reinstalling Adobe (removing all the related files), although I did not have any previous versions (and installations) of Acrobat in this computer.
    2.
    In Adobe PDFMaker  uncheck 'Enable Accessibility and...' option
    3.
    Setting printer to Adobe PDF
    4.
    In Word > TOC settings I checked the 'Use hyperlinks instead of page numbers' option
    Also I tried In Adobe PDFMaker not use TOC but to use 'Convert Word Headings to Bookmarks'
    The result was horrible. Double bookmarks, reversed Level 1 with Level 2 positions and lots of empty bookmarks (I believe created by empty rows in pages tables).
    Please note, that using the same Headings Word creates TOC without any problems!
    The only plus side was that some of those bookmarks came with correct links.
    Those bokkmarks were created using 'New Bookmarks from structure' option in Acrobat (after converting the document)
    /jas

    This is ridiculous!
    I think it is time for Adobe to admit there is a problem creating bookmarks in Acrobat, regardless the used version.
    Today I spent all day trying different combinations.
    In addition to my post above I installed and tested the same document in Acrobat Prof ver.8 and Acrobat X.
    The installation was virgin (no previous Adobe was installed).
    Same for MS Office. Virgin installation of ver. 2003 and 2007
    My document I copied and pasted in blank new Word document.
    Also I tried under Windows XP
    All that does not make any difference.
    The final result was always the same, as shown graphically in above post.
    Any ideas?
    What I do not understand, how such big corporation allows bugs like that.
    Convertning TOC (nice working in Word) cannot be a rocket science!
    If Word can create TOC from Headings flawlessly, why not Adobe?
    That TOC is correctly converted as TOC page in pdf document.
    Maybe Adobe should add the option to create bookmarks directly from it after the conversion?!
    As I said, it is not a rocket science.
    Onus is on you, Adobe!
    /jas

  • Problem importing Word document with TOC

    I am trying to import a Word document containing a table of contents into Pages. The TOC does not appear at all and I get a box saying: "The table of contents is empty because none of the paragraph styles selected in the Document Inspector are used in the document". The TOC style in the original Word document is a hyperlink.
    Any help appreciated,
    George
    Pages 2.0.2

    I'm on Windows right now, but I will try answering anyhow. Forgive me for being foggy.
    If the the document complains that the styles are wrong, that is probably where the problem is. Somewhere in Pages there should be a setting to choose which styles to use for building a table of contents. You should try to change those settings to match the style names used in the Word document.
    A possible source of error here is if you use Pages in another language than the Word document. Let's say the Word document uses the German word "Titel" for Header 1 and you run Pages in French, which expects something like "Titre". It is then possible that Pages cannot recreate the table of context, unless you tell it that it should built it from the styles called Titel.

  • Font problem creating WORD document with Oracle Reports 8i/9i

    I created a report using different Arial fonts. Once the report is generated from a .NET application, the fonts in the word document are changed apparently into Helvetica. This disarrange my lay-out completely. How can I solve this problem?
    (NB. when I generate a PDF, there is no problem!)

    By the way. I create the files in this way:
       private void createFile(String outFileName) {
          try {
             ByteArrayInputStream result = clientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
             File newFile = new File(outFileName);
             FileOutputStream output = new FileOutputStream(newFile);
             int bytesRead = 0;
             byte[] byteArray = new byte[10000];
             while ((bytesRead = result.read(byteArray)) != -1) {
                output.write(byteArray, 0, bytesRead);
             output.flush();
             output.close();
          } catch (Exception e) {
             e.printStackTrace();

  • Problem in word document dispaly

    Hi,
        i have a report program , after executing the report i will get a WINWORD button , when i click that the output should be presented in a word document .The problem is  when i tested the same program in different clients iam getting different layout.Are there any configuration setting that are to be maintained?
    Thanks

    Hi Vijay,
                can u please give me some more details of what has to checked in the program.I execute the program SAPRDEMOWORD97INTEGRATION in both the clients but i did not observe any difference.If any thing else has to be checked ?

  • Having a problem saving word documents...any ideas?

    I'm hoping someone can help me out with this..
    Lately when I've been writing a word document a message will pop up from the Auto Recovery Save. It says, "Word cannot save or create this file. The disk may be full or write-protected. Try one of more of the following: free more memory, make sure that the disk you want to save the file on is not full, write-protected, or damaged."
    I'm using Word 2004 (version 11.3.5) on Mac OS X 10.4.11
    I've tried deleting some word files to free up some space but I'm still getting this message. I haven't had any other problems using my macbook. I write a lot of word documents (I'm a student) but this is the first time I've ever had this message pop up.
    Any ideas what the problem is or what I can do to fix it?
    Thanks!
    Stacy

    How much free space is on your hard drive?
    Have you emptied the trash?
    Disk space is not 'freed' for re-use by deleting files until the trash is emptied.
    Have you tried using Disk Utility to check the disk for errors and to verify/repair disk permissions?
    Have you tried saving your documents to a flash drive plugged into the USB port?
    An empty 4Gb or 8Gb Flash drive has plenty of space to store lots of documents as an inexpensive and a temporary solution if you're almost out of hard disk space.
    Even with a flash drive, you might get the same error message, because the temporary files are probably defaulting to being stored on your hard disk. There's likely a place somewhere in Word preferences to view and change where the temporary files are stored. (Sorry, I haven't used OS X 10.4 or Word 2004 in about 4 years, and I don't have either one immediately available to check.)
    It's also possible that your hard drive is beginning to fail. If Disk Utility cannot verify the hard disk, I would recommend making a backup of important files immediately to CD or DVD. (I use Time Machine, but that didn't become available until OS X 10.5)

Maybe you are looking for

  • Installing NM on Windows 7

    I'm attempting to install Network Magic on a computer running Windows 7.  I downloaded the latest version of nmsetup, put it on a memory stick, and took it to the new machine.  I executed it directly from the stick.  Some kind of window briefly appea

  • Help with simple program

    I am trying to get a program in my CS1 course and am having a hard time, help.. this is what the prof wants>>> Your employer is developing encryption software and wants you to write a Java program that will display all the prime numbers less than N,

  • ReadyNAS Duo and Time Machine

    Since i upgraded my MacBook Pro with the latest OS X 10.6.8 my ReadyNas is no longer visible in Time Machine. In the Finder i see my ReadyNas, but Time Machine does not list the drive for backup. What could be the problem, solution?

  • SQL 2008R2 Database status not reflecting on SCOM 2012

    Hi Everyone, I am using SQL server 2008R2 with 2 instance and 9 database, SCOM agent installed on that server. When i put 2 database offline i am not getting any alert, and  i also delete 3 database its not reflecting on scom server. I also verified

  • How is mainBundle Resource Path Initialized?

    Hello, I am grafting code from a working project into a new project I've created. In the viewDidLoad method the working project creates a string like this: NSString* bitmapFont = [[NSBundle mainBundle] pathForResource:@"Arial_bmpFont" ofType:@"BMP" i