OrdDoc.getMimeType() null

The following doc is loaded successfully and later added to the database successfully, but for some reason the mime type is always null. Any ideas?
OrdDoc doc = (OrdDoc) rset.getORAData(1, OrdDoc.getORADataFactory());
doc.loadDataFromFile(path + mf.getRef());
System.out.println(doc.getMimeType()); // null

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

Similar Messages

  • DOC.getMimeType() is null

    Hello Gurus,
    Getting DOC.getMimeType() as null when using ORADOC after Import , Unable to find the document type.
    Importing is done through a URL using ordsys.orddoc.import(), the filename is an ID, we call the document using that ID, will not know the filetype until Opened.
    Any Suggestions.
    Thank you

    Sorry Its ORDDOC not ORADOC

  • Error in Update of atributte ORDSYS.ORDDOC

    Dear Friends,
    Somebody can help me, I have the following problem, when my program tries To make the Update of an Attribute "ESCRITO" of type ordsys.orddoc in table "LYT"."movimiento" (to see down) of a data base Oracle 9,0,1,0,0, using the method:
    void cmdImportarAP(ActionEvent e)
    try{
    Row rw = mov.getCurrentRow();
    File fichero = new File(escritos+"*"+rw.getAttribute("Id")+".doc");
    OrdDocDomain docu = (OrdDocDomain) rw.getAttribute("Escrito");
    if (docu != null){
    throw new Exception("Ya hay un documento en la DB");
    JFileChooser elector = new JFileChooser();
    elector.setDialogTitle("Importar desde:");
    elector.setName(fichero.toString());
    elector.setSelectedFile(fichero);
    int resultado = elector.showOpenDialog(null);
    if(resultado == JFileChooser.APPROVE_OPTION) {
    docu = new OrdDocDomain();
    docu.setContentSource(new OrdFileSource( elector.getSelectedFile().getAbsolutePath()));
    rw.setAttribute("Escrito",docu);
    amod.getTransaction().commit();
    } catch (Exception ex) {
    app.reportException(null,ex);
    I get this exception
    (oracle.jbo.DMLException) JBO-26041: Failed to post data to database during "Update": SQL Statement "JBO-29000: Unexpected exception caught: java.sql.SQLException, msg=ORA-00600: código de error interno, argumentos: [qxidmaclob], [], [], [], [], [], [], []
    ORA-06512: en "SYS.DBMS_LOB", lÃnea 492
    ORA-06512: en lÃnea 1
    CREATE TABLE "LYT"."MOVIMIENTO" ("ID" NUMBER(15) NOT NULL, "PROCESO"
    NUMBER(10), "HECHO" VARCHAR2(15 byte), "FECHA" DATE, "RESPONSABLE"
    VARCHAR2(10 byte), "FOJA" VARCHAR2(10 byte), "AGENDA"
    VARCHAR2(15 byte), "ESCRITO" "ORDSYS"."ORDDOC",
    CONSTRAINT "MOVIMIENTOPROCESO" FOREIGN KEY("PROCESO")
    REFERENCES "LYT"."PROCESO"("ID"),
    CONSTRAINT "MOVIMIENTORESPONSABLE" FOREIGN KEY("RESPONSABLE")
    REFERENCES "LYT"."MIEMBRO"("ID"),
    CONSTRAINT "PKMOVIMIENTO" PRIMARY KEY("ID")
    USING INDEX
    TABLESPACE "LYTTABLAS"
    STORAGE ( INITIAL 64K NEXT 0K MINEXTENTS 1 MAXEXTENTS
    2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1)
    PCTFREE 10 INITRANS 2 MAXTRANS 255)
    TABLESPACE "LYTTABLAS" PCTFREE 10 PCTUSED 40 INITRANS 1
    MAXTRANS 255
    STORAGE ( INITIAL 64K NEXT 0K MINEXTENTS 1 MAXEXTENTS
    2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1)
    LOGGING LOB("ESCRITO"."COMMENTS") STORE AS ( TABLESPACE "LYTTABLAS"
    STORAGE ( INITIAL 64K NEXT 0K MINEXTENTS 1 MAXEXTENTS
    2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1)
    ENABLE
    STORAGE IN ROW
    NOCACHE CHUNK 4096 PCTVERSION 10) LOB("ESCRITO"."SOURCE"."LOCALDATA")
    STORE AS ( TABLESPACE "LYTTABLAS"
    STORAGE ( INITIAL 64K NEXT 0K MINEXTENTS 1 MAXEXTENTS
    2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1)
    ENABLE
    STORAGE IN ROW
    NOCACHE CHUNK 4096 PCTVERSION 10)

    I'd suggest you do a simple test.
    1. create a table in your database:
    create table docs (id number(10), mov ordsys.orddoc);
    2. write a simple BC4J app that just uploads a document to the "mov" column.
    I suspect that ORDSYS.ORDDOC does not work well with your non-English database. This simple test can test whether that's the case.
    regards,
    Richard

  • Problem using writeToSource from ORDDoc

    Hi
    I have some problem using writeToSource
    it works it writs on the source but not at the end
    it writes at 1st starting position
    how i can handle that problem
    tanx

    Hi larry
    Thanx for cooperation
    i am using some way to use lob data but
    not pointer execption is really great problem for me
    i am giving code an exception too read an give me some suggestions
    public void append(String sid)
    throws SQLException, ServletException, IOException
    String comm1="";
    if (conn == null)
         getConnection();
         conn.setAutoCommit(false);
    stmt =(OraclePreparedStatement)conn.prepareStatement(
    "select doc from doc_table where doc_number = ? for update");
    stmt.setString(1,sid);
    if (rset.next())
    doc1 = (OrdDoc)rset.getCustomDatum(1,OrdDoc.getFactory() );
         }else
                             rset.close();
                             stmt.close();
    stmt.close();
    stmt =(OraclePreparedStatement)conn.prepareStatement(
    "select comm from doc_table where doc_number = ?");
    stmt.setString(1,sid);
    if (rset.next())
              comm1 = rset.getString(1);
    else
         rset.close();
              stmt.close();
    stmt.close();
    byte [][]ctx = new byte[1][64];
    byte[] buf = new byte[comm1.length()];
    buf = comm1.getBytes();
    BLOB doc2 = doc1.getContent();
    OracleCallableStatement open_st =
    (OracleCallableStatement) conn.prepareCall(
    "BEGIN " +          
    " DBMS_LOB.CREATETEMPORARY(doc2,TRUE,DBMS_LOB.SESSION); "+
    " DBMS_LOB.OPEN(doc2,DBMS_LOB.LOBREADWRITE);"+
    " DBMS_LOB.WRITEAPPEND(doc2,comm1.length(),comm1);" +
    " END;");
    //open_st.registerOutParameter(1,doc2);
    //open_st.registerOutParameter(2,comm1.length());
    // open_st.registerOutParameter(3,comm1);
    open_st.execute();
    close_st =(OracleCallableStatement)conn.prepareCall(
    "BEGIN DBMS_LOB.CLOSE(?); END;");
    BLOB temp = open_st.getBLOB(1);
    InputStream in = temp.getBinaryStream();
    doc1.loadDataFromInputStream(in);
    in.close();
    //close_st.setBLOB(1,temp);
    stmt = (OraclePreparedStatement)conn.prepareStatement(
    "update doc_table set doc = ? where doc_number = ? ");
    stmt.setCustomDatum(1,doc1);
    stmt.setString(2,sid);
    stmt.execute();
    rset.close();
    stmt.close();
    conn.commit();                     
    java.lang.NullPointerException
    at SQLObject.append(SQLObject.java:64)
    at demo.sample._comments._jspService(_comments.java:136)

  • Problems on Creating INDEX for ORDSYS.ORDDOC type

    I have a table 'docs'
    CREATE TABLE "TEST"."DOCS"
    ("ID" VARCHAR2(2048 byte) NOT NULL,
    "DOCUMENT" "ORDSYS"."ORDDOC",
    "DUMMY" CHAR(1 byte) NOT NULL)
    The field DOCUMENT contains a number of documents a mixture of .doc and .pdf files. These where uploaded using the code wizards for the web toolkit. Now I want to INDEX DOCUMENT so I can implement a web search facility.
    I'm currently following the xamples on http://download-west.oracle.com/otndoc/oracle9i/901_doc/text.901/a90121/cdatadi3.htm#43365 NESTED_DATASTORE Example (Intermedia Documentation)
    I did this
    ctx_ddl.create_preference('ntds','nested_datastore');
    ctx_ddl.set_attribute('ntds','nested_column', 'dummy');
    ctx_ddl.set_attribute('ntds','nested_type', 'ordsys.orddoc');
    ctx_ddl.set_attribute('ntds','nested_lineno','source');
    ctx_ddl.set_attribute('ntds','nested_text', 'comments');
    when creating the index using ntds it is complaining about ordsys.orddoc
    create index docindx on docs(dummy) indextype is ctxsys.context parameters('data
    store ntds')
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-50857: oracle error in dricon.get_type_data_type
    ORA-20000: Oracle Text error:
    DRG-12801: invalid type: ORDSYS.ORDDOC
    ORA-06512: at "CTXSYS.DRUE", line 157
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 176
    I'm not convince on the 'nested_lineno' parameter can anybody tell me how this can be done.

    I'm forced to use ordsys.orddoc since 'interMedia Code Wizard for the PL/SQL Gateway' won't generate the code for a clob it only recognizes intermedia objects.
    since orddoc.comments is a clob I cannot see why there shouldn't be a way to index it. What's the use of storing documents in ORDDOC when you can't search them??

  • ORDDOC and context searching!!

    We have a scenario in which client uploads file in the format doc,ppt,pdf into database and is stored as orddoc format.
    The version of database used in 9i. The client has a requirement in which he needs to search for a particular text inside the document.
    Q1. Is this possible using the Orddoc dataype and ctxsys
    We have tried with CLOB datatype and were able to search for a particular string inside the document.
    Which is best datatype for this purpose and does oracle has any other tools/methods by which this can be done?

    Hi Satish,
    I followed the procedure in the link
    Created the table
    CREATE TABLE SEARCHTABLE
    SNO NUMBER NOT NULL,
    DATA ORDSYS.ORDDOC
    Then created the index as
    CREATE INDEX DATA_CTX_IND ON searchTable(data.source.localdata) INDEXTYPE IS CTXSYS.CONTEXT;
    Latter i upload a txt file and recreated the index. I checked the DATA_CTX_IND$I table and found that no data was populated.
    I run the query
    CREATE INDEX DATA_CTX_IND ON searchTable(data.source.localdata) INDEXTYPE IS CTXSYS.CONTEXT;
    and i am getting the following
    ORA-29900:operator binding does not exist ORA -06553 : PLS-306 : wrong number or types of arguments in call to 'CONTAINS'
    The same query worked fine for varchar and clob type field, so how can it suddently fail for orddoc?
    Note: I am not an expert in oracle.. i just having working knowledge .. and this is first complex thing i am doing

  • Setproperties on new ORDDOC gives ORA-6512?

    Hello,
    I am attempting to convert the CLOBs in an existing table into ORDDOCs in a new table.
    I seemed to be almost there. I allocated a new ORDDOC using INIT(), and used writeToSource() on the doc pointer to transfer the text (which I first converted to RAW). The application that accepts this now lists the new document, and displays the text contents.
    I now need to set the size (and MIME type, even though the app seems to understand that it's a text document). I called setproperties after writeToSource, and get a set of ORA-6510/ORA-6512 errors. (Included below)
    I'd really appreciate any advice!
    Thanx and regards,
    Arn.
    DEV1> l
    1 DECLARE
    2
    3 srcRec arn5%ROWTYPE;
    4 doc ORDSYS.ORDDOC;
    5 ctx RAW(4000) :=NULL;
    6 userArg RAW(4000);
    7 len INTEGER;
    8 comtxt VARCHAR2(32767);
    9 comraw RAW(32767);
    10 res integer;
    11 doc2 ORDSYS.ORDDOC;
    12
    13 BEGIN
    14
    15 DELETE FROM assessment_document
    16 WHERE DOC_NO = 0;
    17
    18 DELETE FROM media_document
    19 WHERE DOC_NO = 0;
    20
    21 INSERT INTO assessment_document VALUES( 1, 0 );
    22
    23 INSERT INTO media_document VALUES(
    24 0, 'comment3.txt', 758197915, SYSDATE, 758197915, SYSDATE,
    25 ORDSYS.ORDDOC.INIT()
    26 ) RETURNING DOC_OBJ INTO doc;
    27
    28 SELECT *
    29 INTO srcRec
    30 FROM arn5
    31 WHERE a=0;
    32
    33 len := LENGTH( srcRec.b );
    34 --res:= doc.openSource(userArg, ctx);
    35
    36 comtxt := dbms_lob.substr(srcRec.b);
    37 doc.writeToSource(ctx, 1, len, utl_raw.cast_to_raw(comtxt));
    38 doc.setProperties(ctx,true);
    39
    40 COMMIT;
    41* END;
    DEV1> /
    DECLARE
    ERROR at line 1:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "ORDSYS.ORDDOC", line 337
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at line 38

    Lawrence, thanx for your prompt reply.
    I'll try restating my requirements and problems, and hopefully that will help.
    We have an existing table containing text comments in CLOBs. I need to convert the contents of each CLOB into a separate new ORDDOC object in a new table. After this, I will also create a JSP screen that will allow new comments to be submitted, which will also be saved in the DB as ORDDOC objects.
    The script I provided was my attempt at the conversion, using doc.writeToSource(). My first question is, is this the right way to go about converting CLOBs to ORDDOCs?
    I have a screen that lists documents in the DB. This list includes the document size, which I determine using getContentLength(). For "real" documents - that is, sourced from external files and uploaded using the browser, such metadata is automatically captured. For my new document that is sourced from the CLOB, this information (content length, MIME type) is not automatically captured. I therefore need to set it somehow. I attempted to use setproperties, as althought setMimeType works, there is no setContentLength function.
    After your reply, we looked into writing our own plugin, but could not glean from the documentation how to go about this - eg, where and how content length is set.
    I hope you can provide further advice on this problem.
    Thanx again, and regards,
    Arn.

  • File Upload Error : Object could not be found in cache, key is null!

    I am having this problem. when I attach a file and press submit button, it gave me
    "Object could not be found in cache, key is null !"
    In my ViewController context I have Invoice_DOC attribute (binary, fileupload)
    and that is mapped to ComponentContoller.attribute(INVOICE_DOC).
    here is wdDoInit() method of my view controller..
    public void wdDoInit()
        IWDAttributeInfo attInfo =
              wdThis.wdGetDemurrageCompController().wdGetContext ().nodeSubmitElements().getNodeInfo().getAttribute(IPrivateDemurrageComp.ISubmitElementsElement.INVOICE_DOC);
    IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
    Any Idea why I am having this..
    I went through some tutorials, The controller node has cardinality of 1..1...

    Hi,
    Could you please try with the following code. Here I have an Action for file uploading.
    public void wdDoInit()
    //@@begin wdDoInit()
    // get attribute info for context attribute "FileResource"
    IWDAttributeInfo attributeInfo =
    wdContext.getNodeInfo().getAttribute(
    IPrivateFileUploadView.IContextElement.FILE_RESOURCE);
    // make the context attribute's simple type modifiable.
    // Only with this line of code the binary data (stored within the
    // context attribute) can be parsed. The Web Dynpro Runtime stores
    // the mime-object’s metadata within the attribute’s type metadata.
    attributeInfo.getModifiableSimpleType();
    // set the file details invisible
    wdContext.currentContextElement().setDetailsVisibility(
    WDVisibility.NONE);
    //@@end
    //Another method for File upload button
    public void onActionUploadFile(
    com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent) {
    //@@begin onActionUploadFile(ServerEvent)
    // get attribute info for context attribute 'FileResource'
    IWDAttributeInfo attributeInfo =
    wdContext.getNodeInfo().getAttribute(
    IPrivateFileUploadView.IContextElement.FILE_RESOURCE);
    // get modifiable binary type from the attribute info,
    // requires type cast.
    IWDModifiableBinaryType binaryType =
    (IWDModifiableBinaryType) attributeInfo.getModifiableSimpleType();
    IPrivateFileUploadView.IContextElement element =
    wdContext.currentContextElement();
    // if a file in the 'FileResource' attribute exists
    if (element.getFileResource() != null) {
    try {
    String mimeType = binaryType.getMimeType().toString();
    byte[] file = element.getFileResource();
    // get the size of the uploaded file
    element.setFileSize(this.getFileSize(file));
    // get the extension of the uploaded file
    element.setFileExtension(
    binaryType.getMimeType().getFileExtension());
    // NOTE: context attribute 'FileName' must not be set
    // because the FileUpload-UI-element property 'fileName'
    // is bound to it. Consequently the fileName is automatically
    // written to the context after file upload.
    // set the details visibility attribute
    element.setDetailsVisibility(WDVisibility.VISIBLE);
    // report success message
    wdComponentAPI.getMessageManager().reportMessage(
    IMessageFileUpDownloadComp.SF_UPLOAD,
    new Object[] { binaryType.getFileName()},
    false);
    } catch (Exception e) {
    throw new WDRuntimeException(e);
    // if no file in the 'FileResource' attribute exists
    else {
    // set the details visibility attribute, hide details
    element.setDetailsVisibility(WDVisibility.NONE);
    // report error message
    IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
    msgMgr.reportContextAttributeMessage(
    element,
    attributeInfo,
    IMessageFileUpDownloadComp.NO_FILE,
    new Object[] { "" },
    true);
    // clear the FileResource context value attribute
    element.setFileResource(null);
    //@@end
    Thanks
    Chandan

  • Creating CTXSYS.CONTEXT type index for orddoc

    Hi,
    We tried to create a index for a orddoc datatype , the syntax used was as below
    CREATE INDEX CIX_DLX_ASSET1 ON DLX_ASSET(TEXT_ASSET.source.localdata) INDEXTYPE IS CTXSYS.CONTEXT;
    where DLX_ASSET is the table name and TEXT_ASSET is of the type Orddoc.
    When we tried to create the index we are getting the below error message
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "CTXSYS.DRUE", line 157
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 204
    But the index is being created but it is not proper and contain query doesnot work properly on it
    However we were able to create an index for TEXT_ASSET.comments as below
    CREATE INDEX CIX_TBL_ASSET1 ON TBL_ASSET(TEXT_ASSET.comments) INDEXTYPE IS CTXSYS.CONTEXT;
    The step we had followed are as below
    Granted required permission to the User owning the index.
    GRANT CTXAPP to User
    GRANT EXECUTE ON CTX_CLS TO User;
    GRANT EXECUTE ON CTX_DDL TO User;
    GRANT EXECUTE ON CTX_DOC TO User;
    GRANT EXECUTE ON CTX_OUTPUT TO User;
    GRANT EXECUTE ON CTX_QUERY TO User;
    GRANT EXECUTE ON CTX_REPORT TO User;
    GRANT EXECUTE ON CTX_THES TO User;
    All the package of the ctxsys is complied
    The ctxsrv has been stared as below
    ctxsrv -user ctxsys/ctxsys
    and is up and runing.

    Dear
    Here are the error explanations;
    ORA-06502:     PL/SQL: numeric or value error string
    Cause:     An arithmetic, numeric, string, conversion, or constraint error occurred. For example, this error occurs if an attempt is made to assign the value NULL to a variable declared NOT NULL, or if an attempt is made to assign an integer larger than 99 to a variable declared NUMBER(2).
    Action:     Change the data, how it is manipulated, or how it is declared so that values do not violate constraints.
    ORA-29855:
         error occurred in the execution of ODCIINDEXCREATE routine
    Cause:      Failed to successfully execute the ODCIIndexCreate routine.
    Action:      Check to see if the routine has been coded correctly.Ogan

  • 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

  • ORDDOC indexing issues

    e have a scenario to imlpement a context search in a table having the datatype as orddoc.
    We have created the table as below
    CREATE TABLE searchTable
    SNO NUMBER NOT NULL,
    Data ORDSYS.ORDDOC,
    CONSTRAINT PK_searchTable PRIMARY KEY (SNO )
    and then created the context index as
    CREATE INDEX CTX_IND_DATA ON searchTable(data.source.localdata) INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS
    ('FILTER CTXSYS.INSO_FILTER') ;
    And latter on upload pdf,doc,txt file to the system and recreated the index by dropping and the recreating.
    But when we run a query using contains returns no row is returned.Futher analysis revealed that index table CTX_IND_DATA$I has no text_token which indicates that lexical has done done the parsing of the file.
    How can we parse and index a pdf,doc file do we need to specify any filter or any other parameter.
    This is the follow up of the below link
    ORDDOC and context searching!!
    Edited by: user8704699 on Feb 1, 2010 9:46 AM

    I created a new project in Premiere 2.0 and imported the files. They index fine. Is there a way to get this to work in CS3?

  • Null And " "

    What is the difference between these two lines of codes?
    String currentFile = null;
    String currentFile = "";
    Edited by: AMARSHI on Jul 10, 2008 7:07 AM

    The reference variable itself, takes up the same amount of space, of course, as all references are the same size. Now, the object on the heap is a different story. With null there isn't one, of course (or if there is there is only one for the entire VM), and for the second a String object will be created in the String pool (once again, only one for the entire VM that every = "" assignment will use). But really, what difference does it make? If there is a difference, it is on the order of a few bytes (at max) for the entire VM, and if this is a concern, your probably doing something else greviously wrong. This miniscule difference should not concern you.
    Edit: And "nulling" variables to "save" memory is also not something you should be concerned with. Either the variable will go out of scope and the object garbage collected anyway, or it's in constant use and so will not be taking up any extraneous heap space. If one of those is not the case, you are, once again, doing something greviously wrong.

  • AND/OR + some nulls in filter

    I'm running into another problem with the AND/OR filter.
    The filter for selecting from object "a" and joining to objects b, c & d
    is:
    (b.theid==2 || c.theid==2 || d.theid==3) && active=="Y"
    The SQL that gets generated is:
    SELECT <...>
    FROM b t1, d t3, a t0, c t2
    WHERE ((((t1.theid = 2 AND t0.bid = t1.id) OR (t2.theid = 2 AND t0.cid
    = t2.id)) OR (t3.theid = 3 AND t0.did = t3.id)) AND t0.active = 'Y')
    This returns a number of instances of the same a object when some of the
    OR clauses do not match. For example, if there's no record
    with d.theid=3, then it will do a full join on table d.
    Do I need to specify something else to flag these as potentially null
    fields so that the filter parser adds that check in? The following SQL
    query works
    ok if I add some checks for NULL on those join fields:
    SELECT <...>
    FROM b t1, d t3, a t0, c t2
    WHERE ((((t1.theid = 2 AND t0.bid = t1.id OR t0.bid IS NULL) OR
    (t2.theid = 2 AND t0.cid = t2.id OR t0.cid IS NULL)) OR (t3.theid = 3
    AND t0.did = t3.id OR t0.did IS NULL)) AND t0.active = 'Y')
    Thanks,
    -Mike
    Mike Bridge

    Hi D,
    Thank you for your answer.
    I have seriously thought about that solution; but I don't think it's a smart way to do it.
    If i do it like that, i need to copy the whole table and paste it inside the if statements.
    I have two xml elements that I need to make the decisions on. POH_PO_TYPE & CP_RELEASE_NUM.
    POH_PO_TYPE can be: STANDARD, RELEASE or BLANKET.
    CP_RELEASE_NUM can be: '' or N
    If POH_PO_TYPE is RELEASE AND CP_RELEASE_NUM is not ''
    OR POH_PO_TYPE is STANDARD
    OR POH_PO_TYPE is BLANKET AND CP_RELEASE_NUM is ''
    THEN show table (which contains the whole PO).
    It shall show the content of the PO in any of these cases.
    BR Kenneth

  • Unit Testing, Null, and Warnings

    I have a Unit Test that includes the following lines:
    Dim nullarray As Integer()()
    Assert.AreEqual(nullarray.ToString(False), "Nothing")
    The variable "nullarray" will obviously be null when ToString is called (ToString is an extension method, which is the one I am testing). This is by design, because the purpose of this specific unit test is to make sure that my ToString extension
    method handles null values the way I expect. The test runs fine, but Visual Studio 2013 gives includes the following warning:
    Variable 'nullarray' is used before it has been assigned a value. A null reference exception could result at runtime.
    This warning is to be expected, and I don't want to stop Visual Studio 2013 from showing this warning or any other warnings, just this specific case (and several others that involve similar scenarios). Is there any way to mark a line or segment
    of code so that it is not checked for warnings? Otherwise, I will end up with lots of warnings for things that I am perfectly aware of and don't plan on changing.
    Nathan Sokalski [email protected] http://www.nathansokalski.com/

    Hi Nathan Sokalski,
    Variable 'nullarray' is used before it has been assigned a value. A null reference exception could result at runtime.
    Whether the warning above was thrown when you built the test project but the test run successfully? I assume Yes.
    Is there any way to mark a line or segment of code so that it is not checked for warnings?
    There is no built-in way to make some code snippet or a code line not be checked during compiling, but we can configure some specific warnings not to be warned during compiling in Visual Basic through project Properties->Compile
    tab->warning configurations box.
    For detailed information, please see: Configuring Warnings in Visual Basic
    Another way is to correct your code logic and make sure the code will not generate warning at runtime.
    If I misunderstood you, please tell us what code you want it not to be checked for warnings with a sample so that we can further look at your issue.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Enlarging Null and Cam

    Hey guys, just experimenting and remembering how to work with nulls to control cams.
    I noticed when I enlarge the null in one dimension, the camera's view also seems to widen.  What's happening here?  What is that and what am I doing that is causing the camera to "see" differently? I thought the whole point of a null was that it didn't have a physical dimension and was really only about orientation and position?

    Woahhh hold your horses! 
    I'm trying to understand the program, not trying to criticize it.  I love Adobe and AE.  Did it sound like I was trying to pick it apart?
    What I'm trying to understand is why when I resize it horizontally, it changes the camera view...and therefore understand how it's changing the camera view.  This is an important concept for me to get about this.  It's not something I have been able to find in literature or other boards.  That's all I'm trying to ask.  I'm not trying to argue with it or point out a flaw or something like that, I just don't understand what's going on.  Is the camera changing and how when I enlarge the null?

Maybe you are looking for