A blob column in xml

Hi,
I have a blob column in some table. It is for example an jpg image. The size is more than 32k (for example size:152287 with dbms_lob.getlength)
How can I get this column in a xml document because I want to use the xml file for importing in a different Oracle schema.
Thanks in advance,
Henk

Extracting the BLOB is not the hardest part, SQL/XML function such as XMLElement() can read the content natively and convert it to a text node in xs:hexBinary format :
SQL> select xmlelement("Image", image)
  2  from test_jdbc_blob
  3  where img_id = 'Koala.jpg' ;
XMLELEMENT("IMAGE",IMAGE)
<Image>FFD8FFE000104A46494600010201006000600000FFEE000E41646F626500640000000001F
Other option is to convert the BLOB to base64 and feed it to an element similarly, though it requires a little more code.
DBMS_XMLDOM has some methods to manipulate large binary streams too.

Similar Messages

  • Getting BLOB column in XML

    Hi,
    We have a requirement where we have a database column as BLOB which contains images.
    Now we have to print this images in the XML publisher report after submitting the program in Oracle APPS.
    Please help or give a pointer for this,
    Thanks
    Aryan

    Here...this should help !
    BLOB image in XML Publisher

  • How to read a XML file from BLOB column and insert in a table - PL/SQL Only

    Hi,
    To make data load more simple to end user instead placing file on the server and use SQL-LOADER, I came up with new idea that using oracle ebusiness suite attachment functionality. that loads a XML file from local PC to a database column(table is fnd_attachments, default data type is BLOB over here).
    I tried with DBMS_LOB and didnt get around.
    Please can anyone tell me how to read the BLOB column using PL/SQL and store the data in a oracle table. Here's the sample XML file and table structure FYI.
    <?xml version="1.0" encoding="UTF-8"?>
    <dataroot xmlns:od="urn:schemas-microsoft-com:officedata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Corporate_alloc.xsd" generated="2009-07-07T14:17:49">
    <Corporate_alloc>
    <PKG_CODE>BKCORP</PKG_CODE>
    <PKG_NAME>Corporate Edition - Books</PKG_NAME>
    <DET_CODE>B9780080543758</DET_CODE>
    <DET_NAME>Waves, Tides and Shallow-Water Processes</DET_NAME>
    <ALLOCATION_RATIO>0.000041</ALLOCATION_RATIO>
    </Corporate_alloc>
    <Corporate_alloc>
    <PKG_CODE>BKCORP</PKG_CODE>
    <PKG_NAME>Corporate Edition - Books</PKG_NAME>
    <DET_CODE>B9780080534343</DET_CODE>
    <DET_NAME>Hydrostatically Loaded Structures</DET_NAME>
    <ALLOCATION_RATIO>0.000127</ALLOCATION_RATIO>
    </Corporate_alloc>
    </dataroot>
    CREATE TABLE TEST_XML
    ( PKG_CODE VARCHAR2(50),
    PKG_NAME VARCHAR2(100),
    DET_CODE VARCHAR2(20),
    DET_NAME VARCHAR2(500),
    ALLOCATION_RATIO NUMBER )
    Thanks
    EBV

    In regards to #3, use the COLUMNS functionality of XMLTable instead of using Extract. Two simple examples are
    Re: XML Data - Caliculate fields
    Re: Extractvalue function not recognised

  • Insert data from XML in a BLOB column to a table

    I have a situation where my source table has a blob column and an XML file is loaded into it.
    Whenever an insert into the table happens I need to read the XML and insert the values from XML to a target table .
    I have done it with oracle inbuilt parser and tokens but this will do a call to the database when already the data is available on the extract file.That would mean a lower performance .
    Can someone help me maybe with some userexit or something
    Thanks in advance

    Please check if you can see the 'DBMS_XMLSAVE' object in all_objects.

  • Conver BLOB column value to XML

    Oracle 10G
    My table has BLOB column my requirement is BLOB values needs to be populated in sequence file
    right now am using Java code to convert into XML then ETL tool to extrcat in to sequence file
    is is possible to pull directly into sequence file??
    Thanks in advance
    Edited by: Kalinga on Dec 8, 2009 9:19 PM

    The thread's subject refers to converting a BLOB to a XML, and you're posting mentions converting it to a sequence file...
    Not sure what you define a sequence file to be? Or what the intention is...
    BLOBs are used to store binary data. CLOBs are used to store character data.
    If the data is to be extracted as is into a file for a tool to use, the UTL_FILE can be used to read the contents of the BLOB/CLOB and write it to file.
    In other words, if you have a XML CLOB and an external tool needs the data as a file, there is no data conversion as such required. Only data dumping. Reading that CLOB (without conversion to other data types) and writing it to a file.
    If the CLOB data (in XML format) do needs to be processed as a XML DOM, then the SQL function XMLTYPE() can be used to convert that XML in the CLOB to a XML data type that can be processed using XML functions.
    If the CLOB data is in a non-XML format and it needs to be converted into XML and then spooled to a file, you need to write a parser that extracts that CLOB data into a SQL structure (e.g. a global temporary table), and then make use of XML functions and SQL to convert that data into a XML DOM.
    Once that is done, the XML DOM contents can be saved as a CLOB and written to an external file for external tools to use.
    If you can be more specific about what the actual problem is, and what (4 digit) Oracle version you are using, the forum can supply more detailed responses - instead of trying to guess what you are trying to achieve and what the meaning is of terms like "+sequence file+".

  • Getting errors while writing to a BLOB column using PrepareStatement

    Hello,
    I am getting the following errors when I am trying to insert in a BLOB in the oracle 9i database:
    java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1 ORA-06502: PL/SQL: numeric or value error ORA-06512: at line 205 ORA-22297: warning: Open LOBs exist at transaction commit time
    It gets inserted into the BLOB column correctly even after throwing exception.I am using the following code:
    String outputXML = outputXML //Some huge string having a length of 52k
    String pKey = "DATA-WORKATTACH-URL MELLONFINCORP-GSS-CPG E-444!20061130T211932.030 GMT";
    String createDateTime = "20061212T145931.448 GMT";
    String createOpName = "Haque, Nadeem";
    String createOperator = "ADCDTB6";
    String createSystemID = "WFE";
    String insName = "TESt INS";
    String objClass = "Data-WorkAttach-Note";
    String updateDateTime = "20061207T191900.510 GMT";
    String updateOpName = "Haque, Nadeem";
    String updateOperator = "ADCDTB6";
    String updateSystemID = "WFE";
    String label = "This is a test for label";
    String attachDate = "20061207T191900.510 GMT";
    String attachedBy = "Nadeem";
    String attachName = "Nadeem Haque";
    String note = "This is a test note";
    String refObjectKey = "E-438!20061130T211932.030";
    String replicationDate = "20061207T191900.510 GMT";
    try{
    java.sql.PreparedStatement pstmt = null;
    java.sql.Statement stmt = null;
    java.io.OutputStream tempBlobOStream = null;
    oracle.sql.BLOB tempBlob = null;
    javax.naming.Context ctx = new javax.naming.InitialContext();
    tools.findPage("tempWorkPage").putString ("testctx", ctx.toString());     
    javax.sql.DataSource ds = (javax.sql.DataSource)ctx.lookup("jdbc/gswWorkflowReportingData");
    tools.findPage("tempWorkPage").putString ("testds", ds.toString());
    java.sql.Connection conn = ds.getConnection();
    tools.findPage("tempWorkPage").putString ("testconn", conn.toString());
    java.sql.ResultSet lobDetails = null;
         try{
              byte [] ba = outputXML.getBytes();
              String query = "INSERT INTO GSW06U.pc_data_workattach(PZINSKEY,PXCREATEDATETIME,ATTACHDATE,PXUPDATEDATETIME,PXCREATEOPNAME,PXCREATEOPERATOR,PXCREATESYSTEMID,PXINSNAME,PXOBJCLASS,PXUPDATEOPNAME,PXUPDATEOPERATOR,PXUPDATESYSTEMID,PYLABEL,ATTACHEDBY,ATTACHNAME,NOTE,REFOBJECTKEY,ATTACHSTREAM) values(?,to_date(concat(substr(?,1,8),substr(?,10,6)),'YYYYMMDDHH24MISS'),to_date(concat(substr(?,1,8),substr(?,10,6)),'YYYYMMDDHH24MISS'),to_date(concat(substr(?,1,8),substr(?,10,6)),'YYYYMMDDHH24MISS'),?,?,?,?,?,?,?,?,?,?,?,?,?,EMPTY_BLOB())";
              tools.findPage("tempWorkPage").putString ("query", query);
              pstmt = conn.prepareStatement(query);
              pstmt.setString(1, pKey); // Bind PZINSKEY
              pstmt.setString(2, createDateTime); // Bind PZINSKEY
              pstmt.setString(3, createDateTime);
              pstmt.setString(4, attachDate);
              pstmt.setString(5, attachDate);
              pstmt.setString(6, updateDateTime);
              pstmt.setString(7, updateDateTime);
              pstmt.setString(8, createOpName);
              pstmt.setString(9, createOperator);
              pstmt.setString(10, createSystemID);
              pstmt.setString(11, insName);
              pstmt.setString(12, objClass);
              pstmt.setString(13, updateOpName);
              pstmt.setString(14, updateOperator);
              pstmt.setString(15, updateSystemID);
              pstmt.setString(16, label);
              pstmt.setString(17, attachedBy);
              pstmt.setString(18, attachName);
              pstmt.setString(19, note);
              pstmt.setString(20, refObjectKey);
              pstmt.execute(); // Execute SQL statement
              // Retrieve the row just inserted, and lock it for insertion of the LOB columns
              stmt = conn.createStatement();
              lobDetails = stmt.executeQuery("SELECT AttachStream FROM GSW06U.pc_data_workattach WHERE PZINSKEY = '" + pKey + "' FOR UPDATE");
              tools.findPage("tempWorkPage").putString ("idvalue", pKey);
              // Retrieve Blob streams for AttachStream column and load the sample XML
              if( lobDetails.next()) {
              //Get the CLOB from the resultset
              tempBlob = (oracle.sql.BLOB)lobDetails.getBlob(1);
              tools.findPage("tempWorkPage").putString ("pos1", "at pos1");
              // Open the temporary CLOB in readwrite mode, to enable writing
              tempBlob.open(oracle.sql.BLOB.MODE_READWRITE);
              tools.findPage("tempWorkPage").putString ("pos2", "at pos2");
              // Get the output stream to write
              tempBlobOStream = tempBlob.getBinaryOutputStream();
              tools.findPage("tempWorkPage").putString ("pos3", "at pos3");
              // Write the data into the temporary CLOB from the byte array
              tempBlobOStream.write(ba);
              // Flush and close the stream
              tempBlobOStream.flush();
              conn.commit();
              //Close everything
    tempBlobOStream.close();
              tempBlobOStream = null;
              tempBlob.close();
              tempBlob =null;
              lobDetails.close();
              lobDetails = null;
              stmt.close();
              stmt = null;
              pstmt.close();
              pstmt = null;
              conn.close(); // Return to connection pool
              conn = null; // Make sure we don't close it twice
         catch(java.sql.SQLException sqlexp) {
                   tempBlob.freeTemporary();
                   sqlexp.printStackTrace();
                   tools.findPage("tempWorkPage").putString ("SQLException", sqlexp.toString());
         catch(java.lang.Exception exp) {
                   tempBlob.freeTemporary();
                   tools.findPage("tempWorkPage").putString ("InnerException", exp.toString());
                   exp.printStackTrace();
         finally
              if (lobDetails != null) {
              try { lobDetails.close(); } catch (java.sql.SQLException e) { System.out.println(" Error while Freeing Result sets" + e.toString()); }
              lobDetails = null;
              if (stmt != null) {
              try { stmt.close(); } catch (java.sql.SQLException e) {System.out.println(" Error while Freeing java Statement" + e.toString()); }
              stmt = null;
              if (pstmt != null) {
              try { pstmt.close(); } catch (java.sql.SQLException e) {System.out.println(" Error while Freeing java PrepareStatement" + e.toString()); }
              pstmt = null;
              try{
              if (tempBlob != null) {
         // If the BLOB is open, close it
         if (tempBlob.isOpen()) {
         tempBlob.close();
         // Free the memory used by this BLOB
         tempBlob.freeTemporary();
              tempBlob = null;
              catch (Exception ex) { // Trap errors
              System.out.println(" Error while Freeing LOBs : " + ex.toString());
              if (conn != null) {
              try { conn.close(); } catch (java.sql.SQLException e) { System.out.println(" Error while Freeing Connection" + e.toString()); }
              conn = null;
    catch(java.lang.Exception e)
         tools.findPage("tempWorkPage").putString ("LangException", e.toString());
         e.printStackTrace();
    }

    Hello,
    I am getting the following errors when I am trying to
    insert in a BLOB in the oracle 9i database:
    java.sql.SQLException: ORA-00604: error occurred
    at recursive SQL level 1 ORA-06502: PL/SQL: numeric
    or value error ORA-06512: at line 205 ORA-22297:
    warning: Open LOBs exist at transaction commit
    time
    You're doing exactly what the error says, that is committing with an open LOB. Look at the following piece of code: you write in the LOB, you flush it and then commit. There is no closing of the LOB stream before committing.
    Try putting the tempBlobOStream.close() instruction before the commit.
    // Write the data into the temporary CLOB from the
    he byte array
              tempBlobOStream.write(ba);
              // Flush and close the stream
              tempBlobOStream.flush();
    nn.commit();
              //Close everything
    tempBlobOStream.close();

  • How to store a PDF in a BLOB column, then select/search it using SQL?

    We have a simple requirement.
    (1.) We have an Oracle 10g DB.
    (2.) We want to store PDFs/MS Word docs inside BLOB column in a table.
    (3.) We need to show PDF/MS Word content to the user, without opening the PDFs/MS World like we normally do (i.e. Using PDV reader/ MS Word).
    (4.) i.e. We need to use SQL statements and
          (a.) Get all contents of the PDF/MS WORD doc.
          (b.) Search for specific strings inside these docs in the BLOB columns.How to do this pls? Code sample would be really great.
    Edited by: user12240205 on Jul 18, 2012 9:35 PM
    Edited by: user12240205 on Jul 18, 2012 9:37 PM

    rp0428 wrote:
    >
    We have a simple requirement.
    >
    Really? You mean as opposed to a requirement that might actually be doable?Could be that simple is used as in stupid ? Like in, "+look at this simply idiotic requirement, blah.. blah...+"? ;-)
    @user12240205:
    BLOBs contains binary data. Not text data. How do you propose to search binary data for strings?
    PDF and Word formats include actual text strings and identifiers as part of the formatting. How do you propose that this be identified and ignored when searching for specific strings in the document's content?
    PL/SQL does not have the ability to take a page from a PDF/Word document, highlight the search string, and display that to the client. A format-parser is needed to parse the PDF/Word format and generate that as content (e.g. HTML or XML) that can be rendered by a client. How do you propose PL/SQL serves up search strings that it found, when it cannot interpret the document format? (cannot even say what page, section or paragraph, that search string occurs)
    Documents can be loaded via the DBMS_LOB interface. Either from the db server's file system, or by the client supplying the document as chunks for "write appending" to a BLOB. See Oracle® Database PL/SQL Packages and Types Reference guide for details.
    Text search and document indexing are supported by an Oracle feature called Content Management<a> (which includes interMedia, UltraSearch, Oracle Text, etc).
    Oracle also supports (on Window server platforms), the Microsoft Component Object Model (COM). COM interfaces (such as COM for Word) can be used for specialised processing (e.g. searching Word documents). Oracle's COM feature allows one to interface directly with external s/w (e.g. MS Word) via its COM interface.

  • How to update a BLOB column in a table with a file in local machine?

    I have a file (of XML type) in my local machine. I want to update it in a BLOB column of a table in databse server. Can anyone help me in this regard. Appreciate your help.
    Regards
    Walter Nicholas

    user447427 wrote:
    I have a file (of XML type) in my local machine. I want to update it in a BLOB column of a table in databse server. Can anyone help me in this regard.That's the client's job to read data on the client PC (from keyboard/mouse/scanner/file/whatever input) and submit that to the database server for processing and/or storage.
    You cannot expect the server to hack into your PC and lift that data in the file from your disk. Not that is not technically possible. You can wire rockets onto a bicycle to make it go faster, but that's not a wise thing to do. Similarly, it is not a bright idea to ignore the very basics of client-server.
    Bottom line - you need client s/w on your PC to load the content of that file into Oracle. It can be done using SQL*Loader as already suggested. It can be done using a web browser (submitting it via HTTP to web-enabled PL/SQL code). You can use FTP or WebDav and upload into Oracle's XDB (XML database).
    Your requirements will determine what client to use. Once off load? SQL*Loader is very easy to use for loading XML files into the database.

  • BLOB column datatype

    Hi
    I have one column which is of datatype BLOB.File was there in the blob column. File Contains the XML tags.My Requirement is need to extract the tag value.
    EX:in XLM i need to extract <name>Rajesh</name>
    Bottom line is Need to extract one tag value from BLOB dataype column which contains the file in which XML tags were there.
    Plz Help

    user12057782 wrote:
    Hi
    I have one column which is of datatype BLOB.File was there in the blob column. File Contains the XML tags.My Requirement is need to extract the tag value.
    EX:in XLM i need to extract <name>Rajesh</name> That's not good. BLOB should store binary data. CLOB should store character based data. XML is character based, so you could end up corrupting the XML by storing it in a BLOB.
    Oracle also has an XMLTYPE datatype specifically for storing XML data in, so why aren't you using that?
    Bottom line is Need to extract one tag value from BLOB dataype column which contains the file in which XML tags were there.Here's a basic example of extracting XML from an XMLTYPE (you can easily convert CLOB to XMLTYPE using it's constructor method)...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select XMLTYPE('<cube>
      2                                <dimension>
      3                                   <sourcename>A1</sourcename>
      4                                   <targetname>X1</targetname>
      5                                </dimension>
      6                                <dimension>
      7                                   <sourcename>B1</sourcename>
      8                                   <targetname>Y1</targetname>
      9                                </dimension>
    10                                <dimension>
    11                                   <sourcename>C1</sourcename>
    12                                   <targetname>Z1</targetname>
    13                                </dimension>
    14                             </cube>
    15                           ') as xml
    16             from dual
    17            )
    18  -- end of test data
    19  select x.*
    20  from t
    21      ,XMLTABLE('/cube/dimension'
    22                PASSING t.xml
    23                COLUMNS sourcename VARCHAR2(2) PATH '/dimension/sourcename'
    24*                      ,targetname VARCHAR2(2) PATH '/dimension/targetname') x
    SQL> /
    SO TA
    A1 X1
    B1 Y1
    C1 Z1
    SQL>If that isn't quite what you want, provide more information with your database version, example data and expected output, as detailed in the FAQ: {message:id=9360002}
    I'm surprised that as a member who's been here for 3 years+ and asked 32 questions, you still haven't understood how to ask a question so that people can help you. Perhaps that explains why you still have 27 question showing as unanswered.

  • 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

  • Full text search in BLOB columns NOT Working

    Hi, I am using Oracle 9i.
    Presently I use following code to create index.
    begin
    Ctx_Ddl.Drop_Preference ('text_only');
    end;
    begin
    Ctx_Ddl.Create_Preference ( 'text_only', 'basic_lexer');
    Ctx_Ddl.Set_Attribute ( 'text_only', 'index_text', 'true' );
    Ctx_Ddl.Set_Attribute ( 'text_only', 'index_themes', 'false' );
    end;
    CREATE TABLE MY_XML_DOCS(
    XML_RES_ID NUMBER (16) NOT NULL,
    XML_RES BLOB NOT NULL,
    XML_RES_PATH VARCHAR2 (128),
    XML_DOCS_CREATED_BY VARCHAR2 (16) NOT NULL,
    XML_DOCS_CREATED_DT DATE NOT NULL,
    XML_DOCS_MODIFIED_BY VARCHAR2 (16),
    XML_DOCS_MODIFIED_DT DATE ) ;
    drop index FULL_TEXT_INDEX ;
    create INDEX FULL_TEXT_INDEX ON MY_XML_DOCS(XML_RES)
    INDEXTYPE IS ctxsys.CONTEXT
    parameters ('lexer text_only stoplist ctxsys.empty_stoplist');
    BEGIN
    CTX_DDL.sync_index('FULL_TEXT_INDEX ','10M');
    END;
    And I've some XML documents stored in blob columns in the above table. But my query with 'contains' param does not return expected results.(it presently returns no results). Do I miss anything? Do I need to specify any thing else while I create the Index? Kindly advice.

    I would agree the CLOB storage would be preferable for XML. If you are using BLOB storage, by default the documents are going to be FILTERed by the INSO_FILTERS. A BLOB column will give you reduced storage in a unicode environment though.
    If you wish to store your data in a BLOB though, you should specify the NULL_FILTER in your create index statement to avoid having the INSO_FILTERS invoked.
    Further, you may also require a CHARSET column in your table specifying the character set of your data for each row if it can vary. The Column should then also be specified in the 'PARAMETERS' clause of the create index statement, this way Oracle knows the correct character set to use when converting the binary data to character data.
    My guess that you are not getting any query results because none of the documents are actually being indexed. Be sure to query the ctx_user_index_errors view to determine if you are getting errors at indexing time.

  • How to upload/download file into/from blob column in ADF/JDev 11g.

    Hello to all.
    I found demo from Kuba user on that page: http://kuba.zilp.pl/?id=1
    But that demo is for release 10g and too complicated for me for this time (I'm fish in Jdeveloper).
    I can create some simple table view (of form view) with oracle connection with table with blob data.
    Blob column will content doc/xls/pdf ...etc.
    Now I can add two buttons for download and upload.
    What I have to do in next time?
    Is it possible to use some component or something?
    Thank you
    Ben

    I was able to accomplish downloading from a blob, but I'm trying to dynamically set the ContentType.
    As the table may contain different types of files, I'm setting the ContentType to #{row.Fileext}, where Fileext is set in SQL select as follows:
    pseudocode: get file extension, and set the content type based on file extension.
    sql select :decode(substr(fdv.file_name,instr(fdv.file_name,'.',-1,1)+1),'log','text/plain; charset=utf-8','xml','text/xml','xls','application/vnd.ms-excel','tif','image/tiff','jpg','image/jpeg','unknown')
    I rather use a fuction/method, and tried the following instead:
    ContentType = #{backingBeanScope.backing_processReqs.FileAttachContType}
    where FileAttachContType =
    public class ProcessReqs {
    public String FileAttachContType() {
    // code to substring filename for extension and decode values
    return strContType
    But I get the following error:
    Error 500--Internal Server Error
              javax.el.PropertyNotFoundException: The class 'sunrider.reqpoportal.view.backing.ProcessReqs' does not have the property 'FileAttachContType'.
                   at javax.el.BeanELResolver.getBeanProperty(BeanELResolver.java:547)
                   at javax.el.BeanELResolver.getValue(BeanELResolver.java:249)
                   at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
    Ideas?
    PS: Kuba, I've been trying to get to your blog all day, and it would just time out.
    Thanks everyone in advance!
    -R
    Edited by: user6631964 on Jul 24, 2009 5:55 PM

  • Blob Column in Data Template

    Below is simple Example I tried and output doesnot look right.
    Note: My Blob Database Column is "LOGO".
    Sample Data Template:
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <dataTemplate name="Employee_Listing" description="List of
    Employees">
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[SELECT EMPNO,ENAME,JOB,LOGO from
    EMP]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_EMP" source="Q1">
    <element name="EMPLOYEE_NUMBER" value="EMPNO" />
    <element name="NAME" value="ENAME"/>
    <element name="JOB" value="JOB" />
    <element name="LOGO" value="LOGO" />
    </group>
    </dataStructure>
    </dataTemplate>
    Sample Ouput Created
    <?xml version="1.0" encoding="UTF-8"?>
    <EMPLOYEE_LISTING>
    <LIST_G_EMP>
    <G_EMP>
    <EMPLOYEE_NUMBER>999</EMPLOYEE_NUMBER>
    <NAME>PILLAI</NAME>
    <JOB>MGR</JOB>
    <LOGO/>
    </G_EMP>
    </LIST_G_EMP>
    </EMPLOYEE_LISTING>
    My Question is :
    Does output should have only a TAG for Blob Column or it should have image data
    which can be rendered through Template using fo:instream tags.
    Am I hitting any bug which is preventing retrieving Blob data through XML data template

    I need to get data out of a BLOB column from a table in an Oracle 8i database and into a file that I can put into a MS Word template. The data in the BLOB column came from a MS Word document. What is the best way to proceed? We have a LOB datatype sample which shows how to save a blob from the DB to a local file at http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/advanced/advanced.htm
    I'd save it to a temp file and then using word add it. You could also spawn wscript.exe to run a Windows VB Script to automate word from the java application.
    Rob

  • BLOB ibfo into XML document

    Hi forumers,
    I've been asked to build a table to keep some data in XML format. Actually this data resides in a relational table and one of the columns is BLOB.
    Can I store BLOB in a XML document ? (for the other columns I'm using XMLFOREST()).
    If this is possible and if I want to "extract" this BLOB information from XML document how can I do this ?
    Best Regards,
    Helena

    Correction made on the subject

  • Retrieving contents of a BLOB column using XSQL

    I am using a simple XSQL page to retrieve some data from a 9i database and the majority of it works fine.
    When I try and retrieve data from a BLOB column I just get a stream of numbers in the result when I am expecting to see some XML data.
    Query:
    <xsql:query>
    SELECT GLOBALINDEXEDBLOB FROM {@db} WHERE {@where}
    </xsql:query>
    Result:
    <?xml version = '1.0'?>
    <a-query db="ODMM_CONTENTSTORE" where="id=1">
    <DETAIL>
    <ROWSET><ROW num="1"><GLOBALINDEXEDBLOB>3C3F786D6C2076657273696F6E3D22312E30223F3E0A3C212D2D20467261676D6 ....
    </GLOBALINDEXEDBLOB></ROW></ROWSET>
    </DETAIL>
    </a-query>
    Any ideas what I'm doing wrong here ?
    Thanks in advance
    Niels Montanana

    Hi
    Have you read through this in the help?
    Home > Advanced Programming Techni... > About BLOB Support in Forms... > About BLOB Support in Reports
    I'm not sure if it's in 2.2 though...
    Cheers
    Ben

Maybe you are looking for

  • SAP MM questions- help needed

    Please can I get an expert's help in findig a solution to the following questions: 1 To view the most up to date planning data (available stock, orders, reservations, etc.) on a material, use the: (more than one answer can be correct) A Stock Overvie

  • Using a second Mac

    I now have 2 Macs. I seem to recall that I can load my copy of Aperture on both (vs buying a second license) and wonder if this is true. Also, as my copy is an upgrade from V1.0 would I first need to load version 1 on the new computer and then upgrad

  • Best way to creat Objects

    Hi gurus, I am in a process of converting CRs to Universe. Based on the business area , I gathered a set of reports that to be converted to Universe. Joining of tables is almost done. Now I am in process of creating objects. As we are going in the Bo

  • Error importing in APEX

    Hello, I have a problem when I am importing an application between environments. I mean: -I make an export of my application in DOS file format an Unicode UTF-8 in my dev environment (APEX 3.0.1.00.07, Oracle9i Enterprise Edition Release 9.2.0.6.0 -

  • Desktop software keeps crashing when it tries to sync organizer info

    Normally, I use Outlook for all of my emails/calender/whatever it is that I happen to be doing, and aside the occasional duplicates of contacts or appointments (if you happen to know how to avoid this as well, I swear, I will build a temple in your h