Help! Storing a file into Oracle8i

Hello
I've tried several things to store an xml file into my database but all failed.
Can anyone please send me a complete JAVA code which inserts a file into the database.
Thanks very much in advance!
null

Download the examples from my Building Oracle XML Applications book from the O'Reilly website, and look at the code in ./orxmlapp/Examples/ch06, in particular the XMLDocuments class and the WriteToCLOB class.
Steve Muench
Development Lead, Oracle XSQL Pages Framework
Lead Product Manager for BC4J and Lead XML Evangelist, Oracle Corp
Author, Building Oracle XML Applications
null

Similar Messages

  • Storing PDF file into DB & restoring back to Filesystem

    Hi Everybody,
    I need to store PDF files into Database (Oracle 8.1.6 on Windows NT). This I could do using DBMS_LOB Package. Now, my problem is bringing back the PDF files to OS filesystem.
    I feel my problem will be solved if I have UTL_LOB Package Object in my Database. Where can I get the script or utility that installs the said Object in my Database. Kindly send me the script/utility if anybody has.
    Thanks & Regards,
    Durai.

    look,
    http://stackoverflow.com/questions/2347842/storing-pdf-files-as-binary-objects-in-sql-server-yes-or-no
    Please use Marked as Answer if my post solved your problem and use
    Vote As Helpful if a post was useful.

  • Need help uploading mp4 file into Muse

    Help please!
    I have a very nice quality, short animation I want to add to my Muse website's home page, but am stuck on putting the video file into the site. I have found that I need to change the mp4 into a swf (flash) file, but I couldn't get that to work either. (Flash gives me the error: "One or more files were not imported because there were problems reading them." when trying to import the mp4 and mov file to convert to swf. I have tried HTML5 also, but can't seem to get the code right.
    Can anyone help me get this video file into a Muse site? If that means I just copy a piece of code and put it into Muse that would be great. If it means I just have to drag and drop, that would be even better! (dreaming a little bit!)
    Thank you!

    HI,
    try some  suggestion given in following threads
    Re: Adding HTML5 Video in Adobe Muse
    Re: embedding video in Muse
    A useful video
    Do let me know if you have any question.

  • NEED HELP - - Inputting data files into a table, Selecting from previous to put in new table, Saving new table

    I am trying to import data characters from a tab delimited file into a table in labview.  After I import the strings, I want to be able to select individual strings from the table and put into another table.  I want the item that I am selecting to appear in a text box labeled 'selected step'.  After I put all of the selected data in the new table, I want to be able to save that table in another tab delimited file (spreadsheet).  This is what I have so far.  Any help given will be GREATLY appreciated. 
    Attachments:
    Selector.zip ‏30 KB

    Hi,
         Here are modifications to your vi to do what you are describing. It helps, when trying to work through issues like these on this forum to not start a new thread with each iteration of your question. Those of us that are trying to help can follow it better if you just "Reply" to your previous thread with the new, related question. If the question is for a totally new issue then a new thread is best, but when you are working through the details of essentially the same problem it really helps us follow it if you stay in one thread, and that usually means faster answers.
    We also like it if, when an answer helps, you give us a rating (the more stars the better) as it is about all we get out of it!
    P.M.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion
    Attachments:
    SelectorV2.zip ‏30 KB

  • Help Trouble Importing Files into Premiere Pro CS3 !!

    Before I reinstalled my computer, I was able to import HD MOV files into Premiere Pro CS3 without a problem but now it it says file not supported! what is going on?? Am I missing a driver since I reinstalled my computer? Thanks Please Help

    like magic !  how cool...
    you might mark thread answered so others dont keep going to it to " help " ...
    good luck with new computer stuff...

  • Help reading .csv file into an arraylist

    i need to read a csv file into an arraylist and then print the arraylist to the screen.
    using:
    try {
                // Setup our scanner to read the file at the path c:\test.txt
                Scanner myscanner = new Scanner(new File("\\carsDB.csv"));    
    ArrayList<CarsClass> carsClass = new ArrayList<CarsClass>(" write all fields");   
                while (myscanner.hasNextLine()) {
    myscanner.add(" add car fields to the carClass");              // Write your code here.
    // loop to read them all to the screencsv file is like this:
    Manufacturer,carline name,displ,cyl,fuel,(miles),Class
    CHEVROLET,CAVALIER (natural gas),2.2,4,CNG,120,SUBCOMPACT CARS
    HONDA,CIVIC GX (natural gas),1.6,4,CNG,190,SUBCOMPACT CARS
    FORD,CONTOUR (natural gas),2,4,CNG,70,COMPACT
    FORD,CROWN VICTORIA (natural gas),4.6,8,CNG,140/210*,LARGE CARS
    FORD,F150 PICKUP (natural gas) - 2WD,5.4,8,CNG,130,STANDARD PICKUP TRUCKS 2WD
    FORD,F250 PICKUP (natural gas) - 2WD,5.4,8,CNG,160,STANDARD PICKUP TRUCKS 2WD
    FORD,F250 PICKUP (natural gas) - 2WD,5.4,8,CNG,150/210*,STANDARD PICKUP TRUCKS 2WD
    FORD,F150 PICKUP (natural gas) - 4WD,5.4,8,CNG,130,STANDARD PICKUP TRUCKS 4WD
    FORD,F250 PICKUP (natural gas) - 4WD,5.4,8,CNG,160,STANDARD PICKUP TRUCKS 4WD
    FORD,E250 ECONOLINE (natural gas) - 2WD,5.4,8,CNG,170,"VANS, CARGO TYPE"
    FORD,E250 ECONOLINE (natural gas) - 2WD,5.4,8,CNG,80,"VANS, CARGO TYPE"
    FORD,F150 LPG - 2WD,5.4,8,LPG,290/370*,STANDARD PICKUP TRUCKS 2WD
    FORD,F250 LPG - 2WD,5.4,8,LPG,260/290/370**,STANDARD PICKUP TRUCKS 2WD
    ok, so do i need to write a file carsclass.java or is the line:
    ArrayList<CarsClass> carsClass = new ArrayList<CarsClass>(" write all fields");
    going to define my carsclass objects? how do i write my fields for each of the 7 categories?
    i believe i can easily add to and print the arraylist, but i'm confused how to go about creating this arraylist in the first place. do i just create carclass.java and save them all as strings? i guess my question is mainly how should i structure this? any suggestions/help is appreciated.
    Edited by: scottc on Nov 15, 2007 5:55 PM

    String.split uses regular expressions.Ahh yeah ummm (slaps forehead) I'd forgotten that... so maybe StringTokeniser is more accessible for noob's. Sorry.
    Anyway... if all you want/need to so is store a bunch of String field values then how about using an array of String's instead of individual fields... maybe something like:
    forums\Car.java
    * Car Data Transfer Object. All fields are final, making objects of this class
    * thread safe(r).
    * @author keith
    package forums;
    import krc.utilz.stringz.Arrayz;
    public class Car
      // class attributes                       // variables //isn't actually wrong, it's just not quit right.
      private final String[] fields;            // final means values are write once, read many times, which is thread safe(r).
       * Initialises the new Cars fields to the given fields array.
       * @param fields - an array of any (reasonable) length
      public Car(String[] fields) {             // no need to comment a constructor as a constructor.
        this.fields = fields;                   // much better to provide javadoc comments explaining
      }                                         // what the method does and how to use it.
       * Returns this Car's fields as one long string.
      public String toString() {                // It's actually GOOD to be a lazy programmer.
        return Arrayz.join(", ", this.fields);  // I have reused my Arrayz.join in several projects.
                                                // I think you can use Array.toString (new in 1.6) instead.
    krc\utilz\stringz\Arrayz.java
    package krc.utilz.stringz;
    import java.util.List;
    import java.util.ArrayList;
    public class Arrayz
        * returns true if the given value is in the args list, else false.
        * @param value - the value to seek
        * @param args... - variable number of String arguments to look in
      public static boolean in(String value, String... args) {
        for(String a : args) if(value.equals(a)) return true;
        return false;
        * append the elements of array into one string, seperated by FS
        * @param a  - an array of strings to join together
        * @param FS - Field Seperator string, optional default=" "
        * @example
        *  String[] array = {"Bob","The","Builder"};
        *  System.out.println(join(array);
        *  --> Bob The Builder
        *  System.out.println("String[] array = {\""+join(array, "\",\"")+"\"};");
        *  --> String[] array = {"Bob","The","Builder"};
      public static String join(String FS, String[]... arrays) {
        StringBuffer sb = new StringBuffer();
        for (String[] array : arrays)
          sb.append(join(array, FS));
        return(sb.toString());
      public static String join(String[] array) {
        return(join(array, " "));
      public static String join(String[] a, String FS) {
        if (a==null) return null;
        if (a.length==0) return "";
        StringBuffer sb = new StringBuffer(a[0]);
        for (int i=1; i<a.length; i++) {
          sb.append(FS+a);
    return sb.toString();
    * append all the elements of the given arrays into one big array
    * @param String[]... arrays - to be concatenated
    * @return String[] - one big array
    public static String[] concatenate(String[]... arrays) {
    List<String> list = new ArrayList<String>();
    for(String[] array : arrays) {
    for(String item : array) {
    list.add(item);
    return(list.toArray(new String[0]));
    I guess that Arrayz class might be a bit beyond you at the moment so don't worry too much if you can't understand the code... there are no nasty surprises in it... just cut and paste the code, change the package name, and use it (for now).

  • Help on embedding files into flash to be downloaded

    I wanted to know if there is a way to embed a pdf file into a flash document to be downloaded by the customer. I want them to be able to click on the thumbnail version of the file to start the download of the high res version of that file. I am making an interactive cd so the files would be stored on the cd itself. I know I could do it by storing the files on the internet but I would like to keep everything local. Thank you so much for your time. Any input would be greatly appreciated.

    You can't. The only way you can do that is store the files locally in your case in the CD and use the normal URLRequest method but instead of calling an http://whatever.com URL you call the RELATIVE url to your file for example if your pdf is saved in a folder called "pdfs" and your swf on the root of the CD then you would call URLRequest("pdfs/mypdf.pdf");

  • Help with importing files into Lightroom 3.2

    Nothing has changed on my Mac for a year, except installing Lightroom 3 two months ago. I have had no issues importing till yesterday. Imported 300 .CR2 files, installed another card into my card reader and it will not import the files from the same camera, same shoot, done same day.
    I have tried to copy the files over to my hard drive and import from there. Failed again.
    I can open the files in Camera RAW and convert them to PSD files on a different drive and they still will not import from there.
    Any suggestions out there/
    I am begging to hate LR3 more and more and more every day.

    Copy the files from your card reader or camera to your Mac then import the files into Lr. You can configure Lr to import where to a new location or leave them were they are.

  • Help - large WMV files into FCE4

    I'm a relative newbie to FCE and have just used it to work with short videos from my AVCHD camcorder.
    Recently, I sent a bunch of Hi-8 video tapes to an online conversion service, and they were returned to me as a series of 3GB (2 hour) WMV files. What format do I need to convert these into to be able to edit everything down to a single DVD's worth?
    I thought using Prism to convert the WMV to MOV would work, but when I try to import (or drop) a MOV file (also 3GB) into FCE, I get a very long spinning beach ball. Should I have used another format or codec?
    Or, should I work with smaller files? Is there any easy way to split up the MOV or WMV files into smaller chunks?
    I was hoping to finish this project by Christmas, but I can't even get to a decent starting point!
    Thanks for any guidance.
    John S

    Thanks!
    It's the first time I've used a conversion service, so I didn't even think to try to specify the output format.
    That may be the best approach; otherwise I'll go with the QT DV suggestion. The quality is pretty poor to begin with, since these are from a 1990-era camcorder.
    Thanks again!
    John

  • Storing  WAVE file into database from sql plus.

    dear all
    I have create a table with two attributes,sl_no number and song long raw type.
    what will be the insert command to insert a .wav file into the database.if not then you can give me some alternate solution also.
    thanks.

    You can use DBMS_LOB.LoadFromFile, I assume you would load these as a BLOB.
    The documentation can be found on technet at
    urlhttp://technet.oracle.com/docs/products/oracle9i/doc_library/901_doc/appdev.901/a89852/dbms_20b.htm#1009007
    [\url]
    An alternative would be to use java to read the file from the file system, and serve it up as a CLOB or BLOB, and INSERT it into the database from there.
    Good Luck,
    Eric Kamradt

  • Help with importing files into elements catalog?

    I recently downloaded HD home video's to my computer and when I open Pre elements 9.0 it gives me the message saying new files have been downloaded since last launch of elements organizer. Elements will now import these files into a catalog. it starts and listed the mov file but is stuck and will not respond.
    Any idea's?

    jsguild
    What is the format of these HD home video's that you are trying to import into Elements Organizer 9?
    Try importing one of them into a Premiere Elements 9.0/9.0.1 new project and determining if a copy of the video gets automatically placed in Elements Organizer 9.
    More later.
    ATR

  • Help merging 3d files into one 3d-pdf-scene

    Is it possible with the LCS to merge 3d-files into a single 3d-pdf-scene just like it is in the Adobe 3D Reviewer? I don't have a "Master"-file that defines an assembly like a catia *.CATProduct file so I can't refer supporting documents in the Generator3D. I also tried the assembler-service but with that I was only able to create a PDF that holds all the single 3d-data on different pages and therefore in seperated 3d-scenes.
    thanks

    Hi Timo,
    If you are still interested in this functionality to merge 3D files in batch, please contact me at [email protected] to discuss further.
    Thanks.

  • Help restoring deleted files into iTunes

    I was overzelaous in trying to delete about 3000 duplicate songs. I was advised by tech support to move all the titles that were listed in the "show duplicate songs" option in iTunes only to find out that I inadvertently deleted the original copy too! I tried to select them from my trash to drag and drop them into my iTunes library bbut that won't work. I can't re-import from my source files on my external drive because the master files are now in the trash. I thought about moving the trashed files into my external drive and re-importing from there but I assume the restored songs will then be un-grouped with the 'master" artist folders? Anyone have some suggestions?

    Drag your files to the desk top - then once they are there you should be able to drop them back into the iTunes window. I tried to drag directly to iTunes from the trash and it would not work. I put the file on the desktop and then moved back into the iTunes window and that did work for me.
    MJ

  • I NEED HELP ON COMBINING FILES INTO ONE PDF FILE

    HOW CAN I TAKE 6 FILES AND MAKE THEM INTO ONE PDF FILE?

    Hi GOLDENSOROR
    How to merge files into one PDF:
    Within Acrobat XI, select File > Create > Combine Files into a Single PDF.
    Click Add Files and select the files you want to add.
    Click, drag, and drop to reorder the files and pages. Double-click on a file to expand and rearrange individual pages. Press the Delete key to remove unwanted content.
    When finished arranging the files, click Combine Files.
    Select File > Save As > PDF.
    Name your PDF file and click Save.
    Please refer : http://www.adobe.com/products/acrobat/merge-pdf-files.html

  • How to load XML files into ORACLE8i database?

    SAP data is being extracted into XML format (via IDOC) files which are being transferred to an ORACLE8i box. There will be a large amount of data transferred on a daily basis which will include updates and inserts. From all the information that I have read on this subject there are 2 options available :
    1. XML-SQL Utility - which converts XML into INSERT, UPDATE or DELETE SQL. There does not appear to be that much functionality available by this method for decodes, transformations on the input data.
    2. SQL*Loader - There was a statement in 1 piece of documentation stating that SQL*Loader could be used for loading XML format data files. I cannot however find any further information on how this is achieved or how it works.
    If anyone has any experience in loading XML format data files using either of the above methods (preferably SQL*Loader as it has more functionality) then could you please provide me with examples or guidance on this matter? Any help would be greatly appreciated as I am not familiar with XML format data files. I am from an Oracle 7.3 background but do not have much experience with Oracle 8 onwards.
    Disclaimer.
    Any views expressed in the above paragraphs are my own and not that of Hewlett Packard Ltd.

    We are loading XML into our database using CLOB datatypes. We don't use the XSU for inserts as it is too slow. We parse the incoming XML document into a PL/SQL record type and then build a generic insert. This might not work well if you have many tags to parse into columns. We also store the entire XML CLOB into a column without parsing the individual tags into separate columns. We then use Intermedia Text for fast, index-based searching within the XML column.
    Check out The Oracle XML Portal website for code examples on how to do this:
    www.webspedite.com/oracle

Maybe you are looking for

  • Can fonts in a PDF be converted to outlines with Acrobat Pro 9?

    Acrobat Pro 9.....Sometimes I get a PDF that I will have to do some edits to.  Because I dont have some of the fonts used, I cant edit the file without losing the fonts used.  Is there a way to have Acrobat maybe resave itself with all the fonts conv

  • Are you using WebServices ?

    Hi Community !! Just few question, are you using WebServices as Data Services ? if so are those WS internal or taken from Internet ? if taken from Internet ...what do you think to create a Wiki Section with public and WS examples.... Discussion is wi

  • GRC AC v10 NWBC: Configure LaunchPad for Menus

    I would like to add a new menu Launchpad, but am having trouble getting it to appear in NWBC. I followed the instructions at: http://scn.sap.com/community/grc/blog/2014/01/31/configure-launchpad-for-menus However, it still does not appear. Any help w

  • ERROR DURING  INTEREST CALCULATION -FLINT

    Hello I have med all the settings in IMG for Interest calculation When I process Flint i get the below error ..... Account symbol 0001 cannot be replaced (modify. + ) can i know what causes this error ...i have maintained settings in OBV1 As below :

  • Broken keys on keyboard

    I have a customer that just called to ask if I can replace 3 keys on his MacBook Pro 17". Don't ask me how, but a rock fell on his computer and broke the CapsLock, Shift and Fn keys. Can you tell me if it is possible to replace those keys or do I nee