How to extract files stored in 9ifs to 9i Database Table's BLOB Column

Dear All,
I am new for 9ifs. Now my client need to retrieve the files which is stored in 9i Database Table's BLOB Column. Actually the files are stored in 9ifs. Therefore we now want to write a Java program to retrieve the files from 9ifs to 9i Database Table's BLOB Column for my client.
The Java program will be loaded as Java Procedure to 9i Database. Then the Java Procedure can be triggerred by DML of 9i Database.
The Questions are:
1. Can I use CM SDK (9ifs) to retrieve files form 9ifs to 9i Database?
2. If the files are already stored in 9ifs, Can I use PL/SQL to copy the files from 9ifs to 9i Database?
3. As the Java Procedure will run frequently, Any problem on 9i Database Java Pool?
4. Any other advices to implement the above stituation depends on the Client must use the database link to retrieve our 9i Database data?
Thanks a lot!

To Get MySql recordset in dreamweaver.
1. Dreamweaver
2. File>new>html>create>
3. File>save>untitle-1.php (make sure to use a php externsion)
4.Database Panel(Window>Database)
5.Click Application Tab
6.Click Plus sign.
7.click Recordset(query)
8.Name it anything
9.Define your connection
10.Go down to database items
11. Click Tables
12. Click the appropriate table
13. click test
14.click ok
To pull image from MySqlDataBase
1Place cursor on page where you want the image.
2 insert>Image
3Select Image Source box appears.
4Click select file form: Data Source(vs File System)
5 Your recordset will display
6 Select the record.
7 Click ok

Similar Messages

  • Uploading a file (.doc, .xls, .txt) into an Oracle table with BLOB column

    Hello All :
    I have been trying to figure out for a simple code I can use in my JSP to upload a file (of any format) into an Oracle table with a BLOB column type. I have gone through a lot of existing forums but couldnot find a simple code (that doesnot use Servlet, for eg.) to implement this piece.
    Thanks a lot for your help !!

    Hi.
    First of all to put a file into Oracle you need to get the array of bytes byte[] for that file. For this use for example FileInputStream.
    After you get the byte array try to use this code:
            try {
                Connection conn = myGetDBConnection();
                PreparedStatement pstmt = conn.prepareStatement("INSERT INTO table1 (content) VALUES(?)");
                byte[] content = myGetFileAsBytes();
                if (content != null) {
                    pstmt.setBinaryStream(0, new ByteArrayInputStream(content), content.length);
                pstmt.close();
                conn.close();
            } catch (Exception ex) {
                ex.printStackTrace();
            }or instead of using ByteArrayInputStream try pstmt.setBinaryStream(0, new FileInputStream(yourFile), getFileSize());Hope this will help...
    regards, Victor Letunovsky

  • How to extract data from info cube into an internal table using ABAP code

    HI
    Can Anyone plz suggest me
    How to extract data from info cube into an internal table using ABAP code like BAPI's or function modules.
    Thankx in advance
    regds
    AJAY

    HI Dinesh,
    Thankq for ur reply
    but i ahve already tried to use the function module.
    When I try to Use the function module RSDRI_INFOPOV_READ
    I get an information message "ERROR GENERATION TEST FRAME".
    can U plz tell me what could be the problem
    Bye
    AJAY

  • How many control files will be present in a database?

    How many control files will be present in a database?

    See this link for control file recommendations
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96524/c04space.htm
    See the portion "Control Files Overview" and the last "Multiplexed Control Files"
    Don't forget to reward points if this answer your query.

  • Extracting Values of a Field from a Database Table in SAP ECC System

    Hi,
    I downloaded Extracting Values of a Field from a Database Table in SAP ECC System Using MII 12.0
    senario from sdn. I'm trying to do that senario in MII 12.05. But I have problem with section 6 in page 7 (you can supply senario from sdn)
    "6- Under the loop of Repeater, use action u2018Rowu2019 to append just the string part of the WA which will display only values for field u2018Batchu2019"
    I did not find WA elemen in Output element of Repeater_0
    How can I create WA element?
    Thanks.

    Cemil,
    Set up a SAP JCo Interface action block.  Use the RFC name RFC_READ_TABLE.
    In the link editor map the table to "MARA", set RowCount to something small (20 is good sample size) and create an xml transaction property named FIELDS and copy the following into it:
    <?xml version="1.0" encoding="UTF-8"?><FIELDS>
          <item>
            <FIELDNAME>MATNR</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
          <item>
            <FIELDNAME>MTART</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
          <item>
            <FIELDNAME>BSTME</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
          <item>
            <FIELDNAME>XCHPF</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
          <item>
            <FIELDNAME>DATAB</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
        </FIELDS>
    Then link the Transaction.FIELDS to SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/TABLES/FIELDS}.  You may run into problems with two other fields and optionally they can be removed (set link type to remove xml).  I usually remove them initially for testing.  The two fields are:
    SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/INPUT/NO_DATA}
    SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/INPUT/DELIMITER} (or you can set this to something like a semicolon,";" or tilda,"~".  I find it easier to caclulate position by length, but that is my own idiosyncrasy.)
    Once you get this one working, we can explore how to do filtering on the dataset.  Your output should be something like this:
    <?xml version="1.0" encoding="utf-8"?>
    <RFC_READ_TABLE>
      <INPUT>
        <DELIMITER />
        <NO_DATA />
        <QUERY_TABLE>MARA</QUERY_TABLE>
        <ROWCOUNT>20</ROWCOUNT>
        <ROWSKIPS>0</ROWSKIPS>
      </INPUT>
      <TABLES>
        <DATA>
          <item>
            <WA>000000000000000023ROH 00000000</WA>
          </item>
          <item>
            <WA>000000000000000038HALB 00000000</WA>
          </item>
          <item>
            <WA>000000000000000043HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000058HIBE 00000000</WA>
          </item>
          <item>
            <WA>000000000000000059HIBE 00000000</WA>
          </item>
          <item>
            <WA>000000000000000068FHMI 00000000</WA>
          </item>
          <item>
            <WA>000000000000000078DIEN 00000000</WA>
          </item>
          <item>
            <WA>000000000000000088FERT 00000000</WA>
          </item>
          <item>
            <WA>000000000000000089FERT 00000000</WA>
          </item>
          <item>
            <WA>000000000000000098HALB 00000000</WA>
          </item>
          <item>
            <WA>000000000000000170NLAG 00000000</WA>
          </item>
          <item>
            <WA>000000000000000178NLAG 00000000</WA>
          </item>
          <item>
            <WA>000000000000000188NLAG 00000000</WA>
          </item>
          <item>
            <WA>000000000000000288HALB 00000000</WA>
          </item>
          <item>
            <WA>000000000000000358HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000359HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000521HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000578FERT 00000000</WA>
          </item>
          <item>
            <WA>000000000000000597HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000598VERP 00000000</WA>
          </item>
        </DATA>
        <FIELDS>
          <item>
            <FIELDNAME>MATNR</FIELDNAME>
            <OFFSET>000000</OFFSET>
            <LENGTH>000018</LENGTH>
            <TYPE>C</TYPE>
            <FIELDTEXT>Material Number</FIELDTEXT>
          </item>
          <item>
            <FIELDNAME>MTART</FIELDNAME>
            <OFFSET>000018</OFFSET>
            <LENGTH>000004</LENGTH>
            <TYPE>C</TYPE>
            <FIELDTEXT>Material Type</FIELDTEXT>
          </item>
          <item>
            <FIELDNAME>BSTME</FIELDNAME>
            <OFFSET>000022</OFFSET>
            <LENGTH>000003</LENGTH>
            <TYPE>C</TYPE>
            <FIELDTEXT>Purchase Order Unit of Measure</FIELDTEXT>
          </item>
          <item>
            <FIELDNAME>XCHPF</FIELDNAME>
            <OFFSET>000025</OFFSET>
            <LENGTH>000001</LENGTH>
            <TYPE>C</TYPE>
            <FIELDTEXT>Batch management requirement indicator</FIELDTEXT>
          </item>
          <item>
            <FIELDNAME>DATAB</FIELDNAME>
            <OFFSET>000026</OFFSET>
            <LENGTH>000008</LENGTH>
            <TYPE>D</TYPE>
            <FIELDTEXT>Valid-From Date</FIELDTEXT>
          </item>
        </FIELDS>
        <OPTIONS />
      </TABLES>
    </RFC_READ_TABLE>
    Add a repeater sourced on:
    SAP_JCo_Interface_0.Response{/RFC_READ_TABLE/TABLES/DATA/item}
    Link your repeater output to a tracer with this:
    Repeater_0.Output{/item/WA}
    What you will see in each tracer message is a single line of data with all the fields contents concatenated together.  You can look up what each field in the string represents by the length of the field as returned in the Response segment of the RFC_READ_TABLE rfc.  Then you can parse out the data you are interested in.
    Give this a try and let me know how you succeeded.
    By the way, I could not find the scenario you referred to.  Can you post a link?
    Regards,
    Mike
    Edited by: Michael Appleby on Jan 12, 2009 5:16 PM

  • How to delete data from single field in a database table?

    Hi guys,
         Plz suggest me How to delete data from single field in a database table?
    thnks,
    pavan

    hi
    in addition to abv details..chk this:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3aef358411d1829f0000e829fbfe/content.htm
    http://dev.mysql.com/doc/maxdb/en/34/ee7fbd293911d3a97d00a0c9449261/content.htm
    regards,
    madhu

  • How can i update the REMARK field in ADRT database table

    Hi all,
    How can i update the REMARK field in ADRT database table
    By using Function modules or BAPI’s
    Please reply me fast

    Hi,
    you can try this code:
        SELECT SINGLE * FROM KNA1 WHERE KUNNR = wa_kunnr.
        IF sy-subrc = 0.
          CLEAR adrct.
          SELECT SINGLE * FROM adrct WHERE addrnumber = kna1-adrnr.
          IF sy-subrc = 0.
            adrct-remark = wa_remark.
            MODIFY adrct.
          ENDIF.
        ENDIF
    best regards,
    Thangesh

  • How to access files stored in a portal

    Hi All,
    I have a file stored in the root directory ..somewhere in root/portalapps/myfile.csv
    This is an xl file ...
    I want to read the contents of this file and write it on the screen..
    even though there is data in my file but i am not being able to read it..
    Below is the code i am using...
    Here pramFile is the corresponding file in the portal server
    //Code
    FileInputStream fis = null;
    BufferedInputStream bis = null;
    DataInputStream dis = null;
    try {
         fis = new FileInputStream(pramFile.getAbsolutePath());
    // Here BufferedInputStream is added for fast reading.
        bis = new BufferedInputStream(fis);
       dis = new DataInputStream(bis);
    // dis.available() returns 0 if the file does not have more lines.
       while (dis.readLine() != null) {
    // this statement reads the line from the file and print it to
    // the console.
                                       response.write("line is "+dis.readLine());
    // dispose all the resources after using them.
         fis.close();
         bis.close();
                    dis.close();
         } catch (FileNotFoundException e) {
         response.write("FileNotFoundException");
    e.printStackTrace();
         } catch (IOException e) {
    response.write("IOException");
         e.printStackTrace();
    //END
    Here dis.readLine() is giving null
    Kindly suggest if there is any mistake in my approach
    Thanks Sundeep

    Hello Sundeep,
    As the Root/Portalapps folder is not accessible, you can only specify yourFilePath to absolute path on your file system
    (ex: c:/...../Root/Portalapps/yourfile)
    Using file system absolute path is not at all a good idea as the application is not portable to other servers. So my suggesion is to keep this csv file in your Applications webresource path like: ROOT/portalapps/com.yourapplication/csvfile
    Now your csvfile is accessible like this: ".../irj/root/portalapps/com.yourapplication/csvfile"
    Here is example how to get Image which is in public path:
    IResource rs = componentRequest.getResource(IResource.IMAGE,
                   "../mimes/mypicture.gif");
    image.setSrc(rs.getResourceInformation().getURL(componentRequest));
    Greetings,
    Praveen Gudapati

  • How are wft files stored

    Hi All,
    I have certain doubts about how workflow definitions files(wft) are stored in database
    1. At which location wft files are stored in server.
    2. using workflow builder we can specify the "effective" date and open wft file effective on that date. How it is achieved.
    Edited by: user13481649 on Aug 12, 2011 1:51 AM

    Suppose I make some changes to wft file on 12-aug-2010,
    if I put any date before 12-aug-2010 on effective in workflow builder i dont see the changes.
    How this is achieved?Why you need to do that? Any specific reason?
    ,one way would be system storing different wft files as per some subversion standards?
    But I am not seeing such a thing in directory mentioned by you.
    $ cd $APPL_TOP
    $ find . -name *.wftThe above will return all workflow files you have under $APPL_TOP for all modules.
    Thanks,
    Hussein

  • How to extract files in terminal[solved]

    im trying to install themes and when i download the file i need to extract it and unless i switch to root in terminal i dont have permission to extract it to /usr/share/themes. so what code do i need to use tto exract files in terminal?
    Last edited by pr0l1f1k (2010-01-21 01:10:45)

    Also heres a handy little function that makes it easy to extract files from CLI if you cant remember the cmds. I have it in my /etc/bash.bashrc so it works for all users. Type "extract foo.bar" to extract. You might also need to install unzip,unrar or others.
    extract () {
    if [ -f $1 ] ; then
    case $1 in
    *.tar.bz2) tar xvjf $1 ;;
    *.tar.gz) tar xvzf $1 ;;
    *.tar.xz) tar xvJf $1 ;;
    *.bz2) bunzip2 $1 ;;
    *.rar) unrar x $1 ;;
    *.gz) gunzip $1 ;;
    *.tar) tar xvf $1 ;;
    *.tbz2) tar xvjf $1 ;;
    *.tgz) tar xvzf $1 ;;
    *.zip) unzip $1 ;;
    *.Z) uncompress $1 ;;
    *.7z) 7z x $1 ;;
    *.xz) unxz $1 ;;
    *.exe) cabextract $1 ;;
    *) echo "\`$1': unrecognized file compression" ;;
    esac
    else
    echo "\`$1' is not a valid file"
    fi

  • How to upload files (.doc./.pdf) to the database?

    Hello,
    I know this question was raised several times before but the answers don't really make me happy.
    I have a table with a BLOB-column for the documents (different mime-types) and a varchar2(100)-column for the mime type.
    I edited the form in navigator an told the blob-field to store mime-information in the mime-type-field.
    Now, do i have to tell portal the mime-type or does it retrieve it itself?
    if i have to tell, how do i do so?
    How can i fill in the value for the mime-type-field with javascript, when the fieldname is something like abc.def.ghi?
    Javascript then will tell me that document.forms.fieldname is not an object.
    Wouldn't it be a good idea to write a howto on this subject (and other subjects too, of course)? I'll do the work if you share your knowledge with me.
    And, by the way, can you share your wisdom about retrieving the blobs from tha database for displaying and download, too?
    thank you very much,
    Ralf Schmitt

    Hi Ralf,
    see in the design time if you are
    1)Interested in only one type of content in the blob column then just mention that mime-type in the
    for eg.there will be text field "or type in fixed mime type" where you can mention the default type which you are interested in uploading.
    2)If you intent to upload files of diffrent type of mime-types then you will have to associate a column for storing the mime types for that file and for this there will be a text field.
    for eg. you will have options for "Select a column to store mime information" which will be having list of all the remaining fields in the LOV , you select which field of the table you wish to make for storing mime-type and do not set any default mime-type in the text "or type in fixed mime type" in this case.
    more explaination:
    =================
    for this case create a table like this :
    create table for_blob(id number(4),file_name blob,mime_type_of_file varchar2(400));
    when you select file_name field while designing the form you will have following option.
    "Select a column to store mime information" ---> select mime_type_of_file
    "or type in fixed mime type" ---> delete the content of this text field.
    Now when you will actually run the form you have to insert mime-types in the text "mime_type_of_file " for eg
    for PDF files: Application/pdf
    for msword :Application/msword
    for the first case just input the mime-type which you wish to upload.
    "or type in fixed mime type" ---> delete the content of this text field say for eg for PDF files:Application/pdf
    so that at run time you do not have to input any mime-type info and in this case even the field need not have the column for the mime-type.
    hope this help.
    rahul

  • How to extract data from xml and insert into Oracle table

    Hi,
    I have a large xml file. which will have hundreds of the following transaction tags having column names and there values.
    There is a table one of the schema with coulums "actualCostRate","billRate"....etc.
    I need to extract the values of these columns and insert into the table
    <Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuUK" chargeCode="LCOCD1" externalID="L-RESCODE_UK1-PROJ_UK_CNT_GBP-37289-8" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-12" transactionType="L" units="11" taskID="5017601" inputTypeCode="SALES" groupId="123" voucherNumber="ABCVDD" transactionClass="ABCD"/>
    <Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuEU" chargeCode="LCOCD1" externalID="L-RESCODE_US1-PROJ_EU_STD2-37291-4" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-04" transactionType="L" units="4" taskID="5017601" inputTypeCode="SALES" groupId="124" voucherNumber="EEE222" transactionClass="DEFG"/>

    Re: Insert from XML to relational table
    http://www.google.ae/search?hl=ar&q=extract+data+from+xml+and+insert+into+Oracle+table+&btnG=%D8%A8%D8%AD%D8%AB+Google&meta=

  • How to read/write a binary file from/to a table with BLOB column

    I have create a table with a column of data type BLOB.
    I can read/write an IMAGE file from/to the column of the table using:
    READ_IMAGE_FILE
    WRITE_IMAGE_FILE
    How can I do the same for other binary files, e.g. aaaa.zip?

    There is a package procedure dbms_lob.readblobfromfile to read BLOB's from file.
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_lob.htm#sthref3583
    To write a BLOB to file you can use a Java procedure (pre Oracle 9i R2) or utl_file.put_raw (there is no dbms_lob.writelobtofile).
    http://asktom.oracle.com/pls/ask/f?p=4950:8:1559124855641433424::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:6379798216275

  • How to know exact size of table with blob column

    I have a table with one BLOB column. I ran this query.
    select bytes/1024/1024 from user_segments where segment_name='GMSSP_REQUEST_TEMP_FILES'
    (user_segments is a view)
    it gave me 0.125
    It means size of table is 0.125. I have uploaded 3 files to this table. Each of them is of 5 mb. After that I check size of table. but result was same. i.e 0.125.
    Can any body tell me how to know exact amount of space consumed by files. I am expecting following result
    size should be (5+5+5+0.125)MB
    Any help is appreciated.
    Thanks.
    Akie

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_1092.htm#i1581211
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:266215435203#993030200346552097

  • What's the best way to create XML file with a schema from a database table?

    Hi,
    I want to create an XML file from a database table (which has over 600 columns) using XML schema (.xsd file). I want to know the best way to do this.
    The output XML file is NOT a direct data dump from the DB table, there�re some logic around it, such as the XML file has some hierarchy with repeating tags.
    I have done this using JAXB by creating Java classes form XML schema, but I don�t want to map 600 DB columns to these Java classes manually, and loop through the record set to create repeating tags.
    I know there are few tools around now like MapForce (Altova), how do people do these now?
    Thanks,
    Chandi

    Can you use a schema when we compose XML doc from Database tables?
    Actually, I'm using SQL Server (sorry, wrong forum). But, I thought a Java tool would have a solution for me.

Maybe you are looking for

  • Why is my detail page blank with no data from master page?

    Hello, I created master page that links to detail page - but when I click on the link I see the detail page empty from data. Do you know why? Thanks! This is the PHP code I'm using in the detail page: <?php require_once('../Connections/connection1.ph

  • German Umlaut in CSV export on mac os

    Hello, i have problems with the csv export when i use an apple mac. German Umlaute are not displayed correctly, neither when i open the .csv file with TextApp nor when i open it with Numbers from iWork. On a windows machine all is fine. Excel and eve

  • Ad hoc distribution / .mobileprovision error...?

    Using the Ad hoc distribution / .mobileprovision capability (with the test users required UDID already added to our Apple Dev account) our test user is dragging the .mobileprovision file onto his iPad listed in iTunes but is getting this error messag

  • Why is my IP address blacklisted?

    I tried to click on links important to my online business but I was denied access and was told to check with my providers/host. I often get 'server not found' too.

  • How to access jpeg files on icloud drive from your iphone (5s)

    Can anyone tell me how to access a jpeg file on icloud drive from iphone? I have upgraded my macbook pro (with retina) to Yosemite, and my iphone is on ios 8.01 and I have turned on icloud drive. The only content I have seen online is accessing word