Getting blobs from databases

Hi!
Im trying to get a blob from a database and write it to a file, but I just can't get the Blob value, I just recieve the adress. I've tried InputStream and getBytes but none of them does what I want. getBytes where closest but because it requires two inparameters (long pos, int length) and blob.length gives an long i can't figure out how many bytes to get. Anyone got any sugestions?

Agrawal.
I've read through both those pages (even thou i've already managed to make the connection to mysql) and I still can't work around my problem. the method getBytes(), requires two parameters, one that tells it where to start reading and one telling it how long it should read. If I leave one out it will inevitable lead to problems. So I still need to figure out a way to get the length of the blob in a int to make this work. but since the blob.length() method returns a long wich I can't convert I'm stuck!

Similar Messages

  • Error while getting  image from database in SUP using ios?

    Hi All,
      Im developing native iOS application using sup 2.1.3 . Im getting error While retrieving  image from SUP database. Here i'm trying to get image from database and show in imageView.can any one help me how to fix this issue?
    In database image datatype is  'LONG Binary' .
    My table Schema:
    CREATE TABLE dba.ImagesTable (
    RowID INT NOT NULL,
    ImageName VARCHAR(20) NOT NULL,
    PhotoData LONG BINARY NOT NULL,
    IN SYSTEM
    ALTER TABLE dba.ImagesTable
      ADD CONSTRAINT ASA137 PRIMARY KEY CLUSTERED (RowID)
    ALTER TABLE dba.ImagesTable
      ADD CONSTRAINT ASA138 UNIQUE NONCLUSTERED (RowID)
    in Xcode:
                [SUP107SUP107DB synchronize];
                SUP107ImagesTable *imgTable =[[SUP107ImagesTable alloc]init];
                SUP107ImagesTableList *list =[SUP107ImagesTable findAll];
                SUP107ImagesTable * oneRecord =[list objectAtIndex:0];
                NSLog(@"rowId:%d---imageName:%@---photoData:%@---photoLenght:%d",oneRecord.rowID,oneRecord.imageName,oneRecord.photoData,oneRecord.photoDataLength);
                NSData *tempData =[[NSData alloc]init];
                SUPBigBinary *responseBinaryData = (SUPBigBinary *)oneRecord.photoData.value;
                @try {
                    [responseBinaryData openForWrite:[oneRecord.photoData length]];
                    [responseBinaryData write:tempData];
                @catch (NSException *exception) {
                    NSLog(@"exception: %@",[exception description]);
                UIImageView *imgView =[[UIImageView alloc] initWithFrame:CGRectMake(50,50,100,100)];
                [self.window addSubview:imgView];
                UIImage * tempImage =[UIImage imageWithData:tempData];
                imgView.image = tempImage;
                [responseBinaryData close];
    Error Log:
    2014-04-02 18:42:15.150 SUP102[2873:70b] rowId:1---imageName:Apple---photoData:SUPBigBinary: column=c pending=1 allow_pending_state=1 table=sup107_1_0_imagestable mbo=0x0 key=(null) ---photoLenght:90656
    Printing description of responseBinaryData:
    <OS_dispatch_data: data[0xc891b40] = { leaf, size = 90656, buf = 0x1213a000 }>
    2014-04-02 18:42:33.304 SUP102[2873:70b] -[OS_dispatch_data openForWrite:]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.305 SUP102[2873:70b] exception: -[OS_dispatch_data openForWrite:]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.305 SUP102[2873:70b] -[OS_dispatch_data close]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.306 SUP102[2873:70b] [ERROR] [AppDelegate.m:497] NSInvalidArgumentException: -[OS_dispatch_data close]: unrecognized selector sent to instance 0xc891b40

    This thread talks about uploading image to SAP from a IOS device,Sending Image to SAP via iOS Native app (SUP 2.1.3)
    Midhun VP

  • Receiver AS2 Adapter issue.....Failed to get configuration from DATABASE. S

    Hi,
    Iam doing prototyping for File -AS2 adapter and ended up with below erros.
    Error type: COMPONENT_ERROR >> Error date: 6/17/11 8:04 AM >> Description: AS2 Adapter failure Outbound configuration error: Failed to get configuration from DATABASE. Sender configuration incomplete - perhaps AS2ID missing.. com.seeburger.as2.AS2Plugin.execute(AS2Plugin.java:379) [6/17/11 8:04 AM]
    and
    Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: javax.resource.ResourceException: SEEBURGER AS2: AS2 Adapter failure # Outbound configuration error: Failed to get configuration from DATABASE. Sender configuration incomplete - perhaps AS2ID missing.., SEEBURGER AS2: AS2 Adapter failure # Outbound configuration error: Failed to get configuration from DATABASE. Sender configuration incomplete - perhaps AS2ID missing..
    The setting i have made during configation are :
    1> Reciver Party with Agency,Schema and Name entered.
    2>Identifiers for both Sender and reciver channel fileld with values seeburger and AS2ID.
    3>Used Sender uses Virtual reciver in sender aggremnet.
    4> Reciever CC have modules localejbs/Seeburger/solution/as2 and localejbs/ModuleProcessorExitBean in sequence.
    Please provide solutions to overcome the issue.
    As this is prototyping, i have downloaded Free As2 client and trying to send files to that client from PI.

    Hi Dinesh,
    make sure to also configure a report channel (refer to the sample chapter in the SEEBURGER AS2 documentation) in order to receive AS2 MDNs for your sent message. Additionally report channels are needed if the SEEBURGER specific TransmissionReports are requested.
    Hope that helps
    Greetings
    -Sascha-

  • How to show in a report a pdf blob from database

    Hi all
    We are working on report 6i and report 10. We have a report wich needs to show a blob field from database that storages a pdf (type application/pdf). OLE2 is deprecated. The pdf blob field must be displayed in a preview and must be printed. In local, it works. When it works on a browser, the pdf blob field is missing. If we load the field into a pdf file, the field is not visible in the browser.
    Do not get it to work. How I can implement? Could you give us any example for this?

    In local, it works. What do you mean by that exactly? You see the pdf in Reports Builder?
    If you just want to show the pdf in a browser (not embedded in a report) it is easy to use mod_plsql. You can have a simple db procedure like this to show any kind of blob:
    procedure show_webdoc(io_blob    in out nocopy blob
                         ,i_mimetype in varchar2
                         ,i_filename in varchar2)
    is
    begin
       if dbms_lob.getlength(io_blob) >0 then
          owa_util.mime_header(nvl(i_mimetype,'application/octet'),false);
          htp.p('Content-length: ' || dbms_lob.getlength(io_blob));
          htp.p('Content-Disposition:  inline; filename="'||i_filename|| '"');
          owa_util.http_header_close;
          wpg_docload.download_file(io_blob);
       end if;
    end show_webdoc;

  • Forms 9i: How get image from database?

    Hi!
    I want to get a image (GIF,JPG, TIFF, etc.) that is stored in database table (as blob) in Image_Item (No Database Block) by Trigger (PL/SQL) way.
    In a Block that is database=yes It's OK, the Query do this in automatic.
    I know that "select column into block_item from db_table" is not possible.
    Thanks!

    I have a multi-row block for entry data, so was thinking in a image item (No Database) in the same block for show a GIF when the user entry one code; then I will not need any thing more for show the correct GIF in each row when the user scroll them.
    The other way, if I create one block-image_item for each row that is displaying; then I need create a Procedure por Syncronize the data row with the GIF; this mean a lot re-quering when the user is scrolling the rows. This is the reason I searching one Instruccion equivalent to read_image_file (but in place Operating System from database) or dbms_lob.read( ... ) but the target must be a block image item.
    Thanks.

  • How to get data from database to JComboBox

    hi
    i am trying to get data which is in database. here the problem is i am getting only one row in the JcomboBox
    i want all data just like list. i dont know how to get that . below is the code plz any one help me....
    import javax.swing.*;
    import javax.swing.JList.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.lang.String.*;
    import java.lang.Integer.*;
    import java.sql.*;
    public class customer_code extends JFrame implements ActionListener
    Container c=getContentPane();
    JLabel customer_code=new JLabel("Customer Code and Name");
    customer_code()
    super("Customer Details");
    setSize(300,250);
    setVisible(true);
    setLayout(null);
    setLocation(430,310);
    Font f=new Font("SansSerif",1,16);
    Font f1=new Font("SansSerif",0,14);
    customer_code.setBounds(10,20,250,30);
    add(customer_code);
    customer_code.setFont(f);
    ResultSet rs=null;
    String j=null,k=null;
    try
    System.out.println("MySQL Connect Example.");
    Statement st=null;
    Connection con=null;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con = DriverManager.getConnection("jdbc:odbc:project","vikky","vishu");
    System.out.println("Connected to the database");
    st=con.createStatement();
    rs=st.executeQuery(" select code as c,Customer_name as n from customer_details ");
    while(rs.next())
    j=rs.getString("c");
    k=rs.getString("n");
    System.out.println(j);
    System.out.println(k);
    String[] names = new String[] {j,k};
    JComboBox comboBox = new JComboBox(names);
    add(comboBox);
    comboBox.setBounds(25,60,250,50);
    comboBox.setFont(f);
    comboBox.addActionListener(this);
    comboBox.setMaximumRowCount(10);
    con.close();
    System.out.println("Disconnected from database");
    catch (Exception e)
    e.printStackTrace();
    public void actionPerformed(ActionEvent event)
    if ("comboBoxChanged".equals(event.getActionCommand()))
    System.out.println("User has selected an item from the combo box.");
    JComboBox comboBox = (JComboBox) event.getSource();
    if(comboBox.getSelectedItem().equals("None"))
    public static void main(String agr[])
    customer_code cd=new customer_code();
    }

    r035198x wrote:
    Also separate that database code from interface display code.
    You should never access the database on the EDT.
    See [Doing Swing Right|http://bytes.com/topic/java/insights/853297-doing-swing-right] for more details.
    Yes! By the time you are working with Swing and JDBC you should already know how to structure code. If not, then you are not ready for these topics and you've jumped the gun.

  • Help , How to get data from database using recordset with UI API

    I want to get a data from database
    when I want to create recordset i notice that UI API didn't has record set
    so I created recordset using DI API (SAPbobscom.recordset and SAPbobscom.company)
    ======================================================
    Dim oCompanyUI As SAPbouiCOM.Company <<UI API
    Dim oRecSet As New SAPbobsCOM.Recordset << DI API
    Dim oCompanyDI As New SAPbobsCOM.Company << DI API
    '=====================================================
    oCompanyDI.Connect
    Set oRecSet = oCompanyDI.GetBusinessObject(BoRecordset)
    oRecSet.DoQuery ("SELECT T0.CardCode, T0.CardName FROM OCRD T0")
    SBO_Application.MessageBox oRecSet.Fields.Item(1).Value
    ======================================================
    but I got an error it said "you are not connected to company"
    I'm really don't have an idea about how to get a data from using UI API (exp I want to get a date or costumer code)
    can someone help me please, I really need it
    Thanks

    you need a single sign on
            Dim oDICompany As SAPbobsCOM.Company
            Dim sCookie As String
            Dim sConnStr As String
            Dim ret As Integer
            oDICompany = New SAPbobsCOM.Company
            sCookie = oDICompany.GetContextCookie
            sConnStr = SBO_Application.Company.GetConnectionContext(sCookie)
            If oDICompany.Connected Then
                oDICompany.Disconnect()
            End If
            ret = oDICompany.SetSboLoginContext(sConnStr)
            If Not ret = 0 Then
                SBO_Application.MessageBox("set Login Context failed!")
                Exit Sub
            End If
            ret = oDICompany.Connect()
            If Not ret = 0 Then
                SBO_Application.MessageBox("Company Connect failed!")
            End If

  • Getting response from Database by sending in parameters

    Hi,
    I am providing parameter which supplies string values to query the database using adapter. I can see the invoke activity sending the string value to the database, but respnse message does not contain anthing.
    Can someone please tell me how to retrieve records from database by suplying parmeter value?
    Thank You
    Anil

    hi Anil,
    use a simple stored procedure or pl/sql function and specify the input and output parameters. We can send any no of parameters to a function and a function can able to return a value. so you can achieve your requirement using pl/sql functions. Learn about that more.
    when you will define ParterLink (using DBAdapter browing databse to select your function ), you shud be able to view one OUT parameter with datatype what you have mentioned earlier in pl/sql function. When you define Invoke for that Parterlink, you should get Invoke Output variable with output variable (having name of that function.)
    If you cannot browse the function in your DB Adapter, just make sure that the user you have defined in DB Adapter has enough privileges to access that function.
    Regards
    Rajesh A

  • Getting record from database

    hai gys
    i have database with date.i want to get the data from database between two dates.
    i have not entered entered data for some dates.
    now i want query , which will also show the dates (which are left ) with null data in the database
    pl. give me query

    This is some sample program and still can be tuned for performance.
    DECLARE
    l_start_date DATE := To_Date('01-JAN-2007','DD-MON-YYYY');
    l_end_date DATE := To_Date('31-JAN-2007','DD-MON-YYYY');
    l_count NUMBER;
    l_cur_date DATE;
    l_exist NUMBER;
    BEGIN
    l_count := l_end_date - l_start_date;
    FOR i IN 0..l_count
    LOOP
    l_cur_date := l_start_date + i;
    l_exist := 0;
    SELECT Count(1)
    INTO l_exist
    FROM table_name
    WHERE date_column = l_cur_date
    AND ROWNUM < 2;
    -- Use trunc on dates if required.
    IF l_exist = 0 THEN
    Dbms_Output.put_line(l_cur_date);
    END IF;
    END LOOP;
    END;

  • Dowload blobs from Database

    I know this is not the best way to store files but I have inherited an old php script which I am converting to CF because php is useless.
    Now i have a script to do this in php but can this be achived with CF? It is just a quick fix until I have time to rework the CMS
    <?php
    if(isset($_GET['id']))
    // if id is set then get the file with the id from database
    $id    = $_GET['id'];
    $query = "SELECT name, type, size, content " .
             "FROM upload WHERE id = '$id'";
    $result = mysql_query($query) or die('Error, query failed');
    list($name, $type, $size, $content) =                                  mysql_fetch_array($result);
    header("Content-length: $size");
    header("Content-type: $type");
    header("Content-Disposition: attachment; filename=$name");
    echo $content;
    i
    exit;
    ?>

    My php experience is NILL, but applying basic coding experience I believe your CFML will be close to this.
    <cfif structKeyExists(url,"id")>
      <cfquery datasource="..." name="result">
        SELECT name,type,size,content
        FROM upload
        WHERE id = <cfqueryparam value="#url.id#" cfsqltype="cf_sql_integer">
      </cfquery>
      <cfheader name="Content-Disposition: atachment; filename=#result.name#">
      <cfcontent type="#result.type#" reset="yes">
      #result.content#
    </cfif>
    If any of this content can be binary, then you may also need to use one or more of the toBinary() toBase64(), isBinary(), binaryDecode() or other relevant functions.

  • Getting Image from database in crystal report

    Hi Experts,
                         I have a user UDF which has Image datatype. I store all the image in C:\Program Files\SAP\SAP Business One\Bitmaps\   folder.Now i have to show this image in my crystal report. When i tried to pick this image from database it gives me only the name of image with extension like abc.jpg . How could i achive this in crystal report.
    Thanks and Regards

    Hi Om
    As you have the location of the image, you can insert it as an OLE object onto the report.
    Click on Insert -> OLE Object -> specify the path of the image.
    For more information, please refer to Crystal Reports help.
    Regards
    Sourashree

  • Displaying BLOB from Database

    Hi All,
    I am trying to preview a 'jpeg' image which is stored in my database. The images get inserted into the DB without any trouble, but on retrieving the images I get 'broken links' to the images. Please Help:
    PROCEDURE GET_TEAM_LOGO(team_name VARCHAR2)
    AS
    vblob BLOB;
    buf RAW(32000);
    buf_size INTEGER := 32000;
    offset INTEGER := 1;
    len NUMBER;
    mime_type VARCHAR2(30);
    BEGIN
    auth_proc;
    -- get image_data and its mime type from the database
    WHERE LOGO_ID=position;
    htp.p('This is the value of team:'|| team_name ||'<br>');
    SELECT logo_image, logo_type INTO vblob, mime_type
    FROM LOGO_TABLE
    WHERE group_name = team_name;
    -- set the mime type for the http protocol
    owa_util.mime_header('image/jpeg');
    -- read the data with htp package
    len:=dbms_lob.getlength(vblob);
    WHILE offset < len LOOP
    dbms_lob.read(vblob,buf_size,offset,buf);
    htp.prn(utl_raw.cast_to_varchar2(buf));
    offset:=offset+buf_size;
    END LOOP;
    -- check for exception
    EXCEPTION
    WHEN OTHERS THEN
    htp.p(SQLCODE || SQLERRM);
    END;
    Thanks,
    Peter

    Hi!
    I've used this code successfylly in a mod_plsql procedure.
    Can be used as following:
    htp.img('http://yourhost:port/<dad>/image.get_image?p_picture_id=123,'"right"',null,null,'width=107 height=66 border=1');
    procedure get_image
    ( p_picture_id number
    ) as
    cursor c_pict
    ( b_picture_id number
    ) is
    select pict.picture -- blob column
    , pict.format -- Gif/Jpeg etc.
    from pictures pict
    where pict.picture_id = b_picture_id
    r_pict c_pict%rowtype;
    v_blob BLOB;
    v_amt NUMBER := 30;
    v_off NUMBER := 1;
    v_raw RAW(4096);
    begin
    open c_pict(p_picture_id);
    fetch c_pict into r_pict;
    if c_pict%notfound
    then
    close c_pict;
    else
    close c_pict;
    owa_util.mime_header('image/'||r_pict.format);
    begin
    loop
    dbms_lob.read(r_pict.picture,v_amt,v_off,v_raw);
    htp.prn(utl_raw.cast_to_varchar2(v_raw));
    v_off := v_off+v_amt;
    v_amt := 4096;
    end loop;
    exception
    when no_data_found
    then
    null;
    end;
    end if;
    end get_image;

  • Convert BLOB from database to string

    Hi All,
    I have retrieved the blob data from my database , and now i have it in my InvokeVariable. The below details will brief the structure of my output variable.
    <variable name="Invoke1_RetrieveRecordForInstanceId_OutputVariable"
    messageType="*ns1:RetrieveRecordForInstanceIdOutputCollection_msg*"/>
    <wsdl:message name="RetrieveRecordForInstanceIdOutputCollection_msg">
    <wsdl:part name="RetrieveRecordForInstanceIdOutputCollection" element="db:RetrieveRecordForInstanceIdOutputCollection"/>
    </wsdl:message>
    <xs:complexType name="RetrieveRecordForInstanceIdOutputCollection">
    <xs:sequence>
    <xs:element name="RetrieveRecordForInstanceIdOutput" type="RetrieveRecordForInstanceIdOutput" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="RetrieveRecordForInstanceIdOutput">
    <xs:sequence>
    <xs:element name="INSTANCE_ID" type="xs:decimal" nillable="true"/>
    <xs:element name="SOURCE_XML" type="xs:base64Binary" nillable="true"/>
    <xs:element name="TARGET_XML" type="xs:base64Binary" nillable="true"/>
    </xs:sequence>
    </xs:complexType>
    I make my assign statement like below.
    <assign name="Assign2">
    <copy>
    <from variable="Invoke1_RetrieveRecordForInstanceId_OutputVariable"
    part="RetrieveRecordForInstanceIdOutputCollection"
    query="/ns2:RetrieveRecordForInstanceIdOutputCollection/ns2:RetrieveRecordForInstanceIdOutput/ns2:SOURCE_XML"/>
    <to variable="EnhancedBLOBdata"/>
    </copy>
    </assign>
    I have my java code for converting the blob to string as below.
    String input = (String)getVariableData("*EnhancedBLOBdata*");
    Base64Decoder baseDecoder= new Base64Decoder();
    try {            
    byte[] decodedBytes = input.getBytes();
    String decoded = new String(decodedBytes);
    //String decoded = Base64Decoder.decode(input);
    setVariableData("DecodedString", decoded);
    catch(Exception ex)
    ex.printStackTrace();
    The data type of EnhancedBLOBdata is base64Binary.. I also checked with 'string' . Even then i dint get the proper decoded form.
    Can anyone help me in using the variable SOURCE_XML coming under the RetrieveRecordForInstanceIdOutputCollection, directly in the line,
    String input = (String)getVariableData("*Invoke_Output_Variable....<some format>*");
    so that there is no need of assigning to some other variable.. Bcz while assignig i am not sure, the assigned variable contains data in blob format.
    Kindly help me in this regard.
    Thanks,
    Sabarisri. N

    I have figured out the error happens on a data picture with about 700KB of data all of the other data fields have less than 100KB. Is there a way around this size issue.

  • Convert BLOB from database to XML. - *URGENT*

    Hi,
    I have converted xml data into BLOB object and inserted into database.
    Now when I retrieve the BLOB object,from my DB, using DBadapter, in the invokeOutputVariable, i have the following. This i copied from the 'Flow Trace'
    <Invoke1_GetSourceXML_OutputVariable>
    <part name="GetSourceXMLOutputCollection" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <GetSourceXMLOutputCollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/GetSourceXML">
    <GetSourceXMLOutput>
    <INSTANCE_ID>1</INSTANCE_ID>
    *<SOURCE_XML>weblogic.jdbc.wrapper.Blob_oracle_sql_BLOB@78f9a</SOURCE_XML>*
    <TARGET_XML xsi:nil="true"/>
    <ORDER_ID>1</ORDER_ID>
    <TASK_INSTANCE_ID>1</TASK_INSTANCE_ID>
    <ORDER_DATE xsi:nil="true"/>
    <TRANSLATION_TYP_CD xsi:nil="true"/>
    <EBM_ID>1</EBM_ID>
    <STATUS xsi:nil="true"/>
    <STATUS_DETAIL xsi:nil="true"/>
    </GetSourceXMLOutput>
    </GetSourceXMLOutputCollection>
    </part>
    </Invoke1_GetSourceXML_OutputVariable>
    1) Here i want to confirm, whether we l get weblogic.jdbc.wrapper.Blob_oracle_sql_BLOB@78f9a sort of value when we retrieve a BLOB object.
    2) Variable declaration is like below.
    <variable name="binaryXML" type="xsd:string"/>
    <variable name="decodedString" type="xsd:string"/>
    binaryXML - value assignment_
    <assign name="Assign2">
    <copy>
    <from variable="Invoke1_GetSourceXML_OutputVariable"
    part="GetSourceXMLOutputCollection"
    query="/ns2:GetSourceXMLOutputCollection/ns2:GetSourceXMLOutput/ns2:*SOURCE_XML*"/>
    <to variable="binaryXML"/>
    </copy>
    </assign>
    I have written java embedding code for converting this BLOB to  xml as below
    String input = (String)getVariableData("binaryXML");
    try
    /* *** INITIALLY I TRIED LIKE THIS*** */
    //byte[] decodedBytes = Base64Decoder.decode(input.getBytes());
    //String decoded = new String(decodedBytes);
    //setVariableData("decodedString",decoded);
    /* *** MY NEW CODE *** /
    String decoded = Base64Decoder.decode(input);
    setVariableData("decodedString",decoded);
    catch(Exception ex)
    ex.printStackTrace();
    My Doubt
    When I try to write this 'decodedString' to a .txt file, I couldnt find any output there.
    <assign name="Assign3">
    <copy>
    <from variable="decodedString"/>
    <to variable="Invoke2_Write_InputVariable" part="body"
    query="/ns4:Root/ns4:C1"/>
    </copy>
    </assign>
    Regarding the schema for the file to be written, i tried with 'opaque' schema.. I dint work. Later i tried with the schema as below (which is comma delimited)
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    xmlns:tns="http://TargetNamespace.com/WriteToFile"
    targetNamespace="http://TargetNamespace.com/WriteToFile"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified"
    nxsd:version="NXSD"
    nxsd:stream="chars"
    nxsd:encoding="US-ASCII"
    >
    <xsd:element name="Root">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="C1" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    Kindly help me in ths regard.
    Thanks,
    Sabarisri. N
    Edited by: Sabarisri N on Jul 22, 2011 2:37 PM

    Read this :
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14252/adx_j_xsu.htm#sthref508

  • Can not get data from database

    hi all,
        there is a problem ,  when i write like below :
    SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
              WHERE bukrs = p_bukrs
                AND hkont = p_hkont.
    p_bukrs , p_hkont are all on the selection screen , and p_bukrs = 1200 another is eq blank. i can not find any data , but with the same condition i can find some data in database , when i debeg i found that p_hkont is initial.
        when i write like this :
    SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
              WHERE bukrs = p_bukrs .
    this time i can find the data like the database.
        so , does someone know where the problem is , why i can not get data ?
    kind regards
    kevin

    hi,
    if u r  using bukrs and hkont as parameters in selection screen then
    SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
    WHERE bukrs = p_bukrs
    AND hkont = p_hkont.
    this will work.
    if u r using then as select-option then the above does n't work.
    bcoz select-options work as internal table bcoz of that u have use the query like this
    SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
    WHERE bukrs IN p_bukrs
    AND hkont IN p_hkont.
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Edited by: Alvaro Tejada Galindo on Aug 15, 2008 5:25 PM

Maybe you are looking for

  • Help on Join AP with Order_Lines

    Hi Gurus, How to join AP Invoices with Order Lines. I am trying to get order number from order_lines and Invoice number from AP_Invoices Regards

  • Synchronous inetd coredumping over multiple zones

    We're experiencing rather strange behaviour on several of our zoned systems (some M5k's, 5220's, T2000's), in that some Solaris daemons (mostly the inetd) are repeatedly coredumping, in all zones at the same time. Aug 2 13:29:01 so02 genunix: [ID 603

  • Disk Burner Not Found

    When I try to burn disks on iTunes, I recieve the message "Disk Burner or software not found..." I have installed the latest version of iTunes. Any suggestions on what I should do? Dell   Windows XP  

  • Errorlog filling with changed language setting and changed database context messages

    On one of my servers, the ERRORLOG is filling with messages for "Changed language setting to..." and "Changed database context..." for every single connection.  They are generated for any kind of connection--such as Management Studio.  How did this g

  • 2 Critical Patch Updates in January 2012

    hi we've got CPUs on January 17th, 2012, January 31st, 2012 is it necessary to apply both of the CPUs or just the latest? I have Oracle RAC 11.2.0.3 on Windows 2008 R2. OK, I've found eventually a section about this: 2 Patch Information Bundle patche