Load and Save MySql Database

In what way in java can I load and save a full database ,from MySql, in java , a dump operation .

This is how I am parsing and requesting the information.. I know it's in there somewhere I just can't get the variables, do I need to add them ? It's not making much sense to me at the moment, I'm sorry !! I need to add the variables to the request somehow.. so I can receive the info, no ?
var tab = "SQLtab";
var filesend = "path to php file";
var modesend = "post";
function variableTransaction(fichier, modesend, tab, var1, var2) {
     var URLload = new URLLoader();
     var URLrequest = new URLRequest(fichier);
     var variables:URLVariables = new URLVariables();
     variables.tab = tab;
     variables.var1 = var1;
     variables.var2 = var2;
     if (modesend == "post") {
          URLrequest.method = URLRequestMethod.POST;
     } else if ( modesend == "get") {
          URLrequest.method = URLRequestMethod.GET;
     if (var1 == false && var2 == false) {
          URLload.dataFormat = URLLoaderDataFormat.VARIABLES;
          URLrequest.data = variables;
          URLload.load(URLrequest);
          URLload.addEventListener(Event.COMPLETE, loadComplete, false, 0, true);
     } else {
          URLrequest.data = variables;
          URLload.load(URLrequest);
          var receiveObject = variableTransaction(filesend, modesend, tab, false, false);

Similar Messages

  • Calling java function load and stored in database

    Hi ,
    I try to call a java fonction loaded and published in database (Oracle 8.1.7.4ee). this function call an OS command ... the PL/SQL call is completed but de command set in parameters function is not execute ... next is the code :
    import java.lang.*;
    import java.io.*;
    public class JShell {
    public static void execute (String command) throws IOException {
    try {
    Process child = Runtime.getRuntime().exec(command);
    } catch (IOException e) {
    calling this function with java main is OK
    import java.lang.*;
    import java.io.*;
    public class TestJShell {
    static public void main(String args[]) throws Exception
    JShell.execute(args[0].toString());
    java TestJShell 'cp /test/myfile.txt /test/myfile.sav'
    copy is donethen when the fuction is loaded and published in database
    as
    loadjava -user ../.. JShell.class
    CREATE OR REPLACE PROCEDURE JShell_exe (Commande in VARCHAR2) AS LANGUAGE JAVA NAME 'JShell.execute(java.lang.String)';run is
    CALL ell_exe ('cp /test/myfile.txt /test/myfile.sav');
    call is completed but no copy is doneCan somebody help me ? thanking you in anticipation;

    Firs things first:
    1)Which copy of your class is loaded in the DB ( it seems that you have two different classes JShell and TestJShell ).
    2)Do you have permisions for file manipulation ?
    3)Do you get any errors ?

  • How to load and save custom workspaces in PE7

    I've written a little utility which allows PE7 users to load and save custom workspaces. It's attached to post #1 of this thread.
    System requirements
    The utility has been tested with Windows XP Pro SP3 only. It might or might not run under Vista. It will only work with PE7 installations where the executable files are in the default places.
    Installation
    When you have downloaded the utility (it's only 199KB) you can run it from any convenient place in your system - it doesn't need to be installed as such.
    Usage
    It's pretty self-explanatory in use but here's the manual!
    Run the downloaded utility "PE7WS.exe".
    A file selection dialog appears. Choose the workspace layout file you wish to use. "LastUsed.layout" is the last used workspace (that's all you will be offered the first time you run the program). If you press Cancel at this point, the program will exit and nothing will happen.
    Once you have selected the workspace, click "Open" and Premiere Elements 7 will run, using the workspace layout you chose.
    After you exit from Premiere Elements 7, a workspace layout file save dialog will appear. If you made changes to the workspace during your Premiere Elements 7 session, you can now give the revised workspace a name and save it.
    Do not save the workspace in a different directory from that which the dialog offers!
    If you have changed an existing custom workspace, and you want to update the version previously stored, just select the name and over-write the saved workspace layout with the new one.
    If you don't want to save the workspace at all, just click "Cancel" - next time you run Premiere Elements, you can choose the "LastUsed.layout" workspace to use that last used unsaved workspace in any event.
    If you use the PE7WS utility to run Premiere Elements 7, and then you use the menu option "Window > Restore Workspace", then exit, you can either cancel the workspace saving stage, (which will mean that "LastUsed.layout" will contain that default workspace), or you could give that default workspace a name like "PE7 Default" so you can start a future Premiere Elements 7 session with the default workspace, even though you last used a custom workspace.
    If you run Premiere Elements 7 in the usual way without using PE7WS.exe, the workspace that appears will be the last used one.
    The usual disclaimer...
    The utility should be entirely safe in use, but I can't accept responsibility for any loss or damage it might cause. However, the only file manipulation is does is to workspace files in the directory that Premiere Elements 7 uses purely for the purpose - the utility doesn't go anywhere near your precious project files.

    I'm finding it very handy on my particular twin 22" monitor setup to sometimes use a one-screen layout and sometimes a two screen layout. I 'discovered' that having the timeline on the second monitor enables me to tweak edits there while having the playback full size after pressing the "full screen" button on the first monitor. Where the timeline would normally be I have the history, mixer, and other windows always open. As the second monitor is also used by another PC (the one I have the net and email etc on) using "Maxivista" monitor sharing software, I revert to single screen layout when doing stuff like exporting to DVD so I can see what is going on with the render while typing stuff like this.
    Selectable workspaces are dead handy!

  • How can I load and save text using FileReference class

    Let me start by saying I have no intention of using php and I can't wait until flash cs5 comes out with its new read/write capabilities
    I want to load and save XML files (stored on my local hard-drive) in AS3.
    I am using the FileReference class.
    Firstly I have noticed that when using FileReference.save if you replace an existing file instead of writing over the file data is appended to the end of the file. Can I make it so the file is overwritten (as it should be) or make it impossible for the user to save in such a situation.
    Secondly I want to load in text from an external file using FileReference.load I know that somehow you use FileReference.browse first to get it to work but I want to know exactly how to do it.
    I have looked for a tutorial about loading text in this manner and have not found one.
    Any help would be much appreciated especially if you could point me in the direction of a relevant tutorial
    Thanks

    the filereference class is for downloading and uploading files.
    if you want to load xml, use the xml class.
    and, if you want to write to an xml file and don't want to use server-side code, wait.

  • Load and save difficulties.

    I am new to java and do not understand how the load and save functions work.
    I have the following code and would like the load function to open selected files into text area 1 and the save function to save the contents of text area 2.
    Can anyone help me with thuis please?
    //Adding text field one
              TextArea ta1 = new TextArea(15,20);
              textPanel = new JPanel();
              textPanel.setLayout(new GridLayout(1,1) );
              textPanel.setBorder(titled);
              textPanel.add(ta1);
              container.add(textPanel, BorderLayout.NORTH);
              //Adding text field two
              TextArea ta2 = new TextArea();
              textPanel = new JPanel();
              textPanel.setLayout (new GridLayout(1,1));
              textPanel.setBorder(titled2);
              textPanel.add(ta2);
              container.add(textPanel, BorderLayout.CENTER);
              //setting the window requirements 800, 600
              setSize(800, 600);
              setVisible(true);
              setResizable(false);
              Load.addActionListener( new ActionListener()
                   public void actionPerformed(ActionEvent e)
                        final JFileChooser fc = new JFileChooser();
                        int returnVal = fc.showOpenDialog(fc);
              Save.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e)
                        final JFileChooser fc = new JFileChooser();
                        int returnVal = fc.showSaveDialog(fc);
         });

    Example:
    // Your code
      Load.addActionListener( new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          File file = getFile('o');
    //      final JFileChooser fc = new JFileChooser();
    //      int returnVal = fc.showOpenDialog(fc);
    // end your code
      File getFile(char fcType) {
        int returnVal = 0;
        File file = null;
        JFileChooser fc = new JFileChooser();
        if ( fcType == 'o' )
          returnVal = fc.showOpenDialog(fc);
        else
          returnVal = fc.showSaveDialog(fc);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
          try {
            file=fc.getSelectedFile();
          } catch (IOException e) {
            // show exception or handle it
        return( file );
      }

  • Load and Save a game in director

    hi, i would like to have the option to load and save a game
    that i have created in Director MX 2004. But, I'm unsure what
    script to attach to my LOAD and SAVE buttons. Was wondering if sum1
    has an idea as to what the lingo script might be?
    thanks
    corry

    You can find my reply to this cross-post in the
    Director
    Online forum.

  • How do I load and save to my iMac a dvd purchased elsewhere?

    how do I load and save to my iMac a dvd purchased elsewhere?  Thank you.

    The mods here are adverse to mentioning software to duplicate commercial media, which is called "ripping." However, you can search outside of this forum for the software you need.

  • Illustrator "Not Responding" on load and save

    Good evening..
    We bought a new computer our graphic designer (HP Z400 quad-xeon 2.66GHz, 16GB ram, Quadro 4000 graphic card), installed with Windows 7 64-bit, set it up with the Adobe CS 5.5 Master Collection.
    The problem is with Illustrator, whereas it goes to "Not Responding" on load and save of files. The progress bar when saving stops at 5-10%, but it seems like it's still doing it's thing and it eventually goes through (15-45secs). However, I really hate getting this kind of message, moreso because his current desktop (HP XW4600, Win XP 32-bit, 3BG of RAM, Adobe CS5) is not doing this at all.
    I looked a lot of the forums, and tested what was offered and it still isn't better.
    - I removed an Add-On I had installed, no luck.
    - Removed all network drives, no luck.
    - Unchecked "Create PDF compatible file", no luck.
    Working locally is the same as on the network, which makes me believe the network is not a problem in my case. (Even switched from 100mb network connection to 1GB, which was the first thing I tried)
    Mind you, all these things I've tried were done in addition to the others, so even to total of all these wasn't helpful, and I'm still at square one.
    I'd like to add that all the other applications in the suite are behaving correctly, Photoshop, Premiere, InDesign... Everything else is working great and not freezing at all. Which is why I find this wierd that Illustrator would act like that while all the others are fine.
    Anything else I should be trying?
    Jonathan
    Edit: I checked again on his previous computer, and it seems the issue is there as well, unlike what I mentionned before, which might point to a problem with Illustrator itself, since between CS5 and CS5.5, Illustrator hasn't changed. Altough I'm not sure if it may be that the old computer is just *that* slow...

    Well, it has the Adobe PDF printer (from Adobe Acrobat) and MS XPS Document Writer (from Office), but since they weren't real printer I hadn't mentionned them. Is this what you consider Virtual printer?
    Either way, I've added a printer but it's still doing the same thing.

  • After i updated my firefox from 3.16 to 4.0.1, have some websites i can't load, and they showed: " database error" but b4 i never got this problem. Can someone tell me why ?

    after i updated my firefox from 3.16 to 4.0.1, have some websites i can't load, and they showed: " database error" but b4 i never got this problem. Can someone tell me why ?

    Nothing is working and I can't find the Roboform toolbar. Your lack of direct support is really irritating- a live chat at least would be helpful.

  • DreamweaverMX and a MySQL database

    Hi
    I am trying to connect to my MySQL database in DreamwaeverMX.
    When I try to add the MySQL Connection I put data as follow.
    Connection Name :connTrio
    Server Name : localhost
    User Name : root
    Password : password
    I get message error "unidentifed error has occurred" When I
    try to select database.
    I can confirm that the database is present, mysql is running,
    password used is correct.
    Hope someone can help
    Best Regards,
    Martin

    Dax Trader wrote:
    > BUT I note in your response that it is the most asked
    question?
    > Tis very worrying that Macromedia must know this and yet
    dont seem to offer a
    > definitive answer.
    I believe it to be the most asked question because a large
    number of
    people don't have a properly installed PHP/MySQL setup, or
    they fail to
    define the testing server correctly in their site definition.
    > I will be delighted, estactic, and eternally in you debt
    if you can help me
    > sort this. :-))
    Well, I'll try.
    > PS I might even fall in love with you :-))
    Please don't. I don't think my wife would approve. ;)
    Open php.ini and make sure the semicolon is removed from the
    beginning
    of these two lines:
    ;extension=php_mbstring.dll
    ;extension=php_mysql.dll
    Add this line:
    extension=php_mysqli.dll
    Save php.ini, and restart Apache.
    Load a page with <?php phpinfo(); ?> into a browser,
    and scroll right
    down. Check that you have sections headed mysql and mysqli.
    Check that
    the value of Client API version in those sections is at least
    5.0.x.
    Check your testing server setup.
    The testing server folder must be in the Apache document
    root.
    The URL prefix must be
    http://localhost/name_of_testing_folder/
    Unless there is something unusual about your system, it
    should then work.
    David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    http://foundationphp.com/

  • Alv data change and save in database

    hello sir,
       i had  done display data in alv from any custom table and that was edit and change..but now i want that data save in database through internal table ...what is coding for save butten.....
    thanks

    Hi
    OOPS ALV....
    U should check the method handle_data_changed (in BCALV_EDIT_04), this method is triggered as soon as the table is modified.
    Here you can understand if a new record is inserted or old record is updated or deleted.
    Normal ALV
    Here is the sample code.If you executed the program and edited something,then after pressing back you will get the changed value in output.For that,I have used loop..Endloop. after FM.SInce your requirement is to update DB,you use
    modify db from table itab.
    That will insert/update the entries in db.
    Kindly reward points by clicking the star on the left of reply,if it helps.
    TYPE-POOLS: slis.
    DATA: report_id LIKE sy-repid.
    DATA: ws_title TYPE lvc_title VALUE 'An ALV Report'.
    DATA: i_layout TYPE slis_layout_alv.
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv.
    types : begin of ty,
    pernr type pa0001-pernr,
    SEQNR type pa0001-seqnr,
    end of ty.
    data itab type standard table of ty.
    data wa type ty.
    select pernr seqnr from pa0001 into table itab.
    report_id = sy-repid.
    PERFORM f1000_layout_init CHANGING i_layout.
    PERFORM f2000_fieldcat_init CHANGING i_fieldcat.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = report_id
    i_grid_title = ws_title
    is_layout = i_layout
    it_fieldcat = i_fieldcat
    i_save = 'A'
    TABLES
    t_outtab = itab
    EXCEPTIONS
    program_error = 1
    OTHERS = 2
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *Use modify statement here instead of loop
    loop at itab into wa.
    write : / wa-pernr, wa-seqnr.
    endloop.
    FORM f1000_layout_init USING i_layout TYPE slis_layout_alv.
    CLEAR i_layout.
    i_layout-colwidth_optimize = 'X'.
    i_layout-edit = 'X'.
    ENDFORM.
    FORM f2000_fieldcat_init CHANGING i_fieldcat TYPE slis_t_fieldcat_alv.
    DATA: line_fieldcat TYPE slis_fieldcat_alv.
    CLEAR line_fieldcat.
    line_fieldcat-fieldname = 'PERNR'. " The field name and the table
    line_fieldcat-tabname = 'ITAB'. " name are the two minimum req.
    line_fieldcat-key = 'X'. " Specifies the column as a key (Blue)
    line_fieldcat-seltext_m = 'Personal No.'. " Column Header
    APPEND line_fieldcat TO i_fieldcat.
    CLEAR line_fieldcat.
    line_fieldcat-fieldname = 'SEQNR'.
    line_fieldcat-tabname = 'ITAB'.
    line_fieldcat-seltext_l = 'No. of records with same key'.
    line_fieldcat-edit = 'X'. APPEND line_fieldcat TO i_fieldcat.
    ENDFORM. " f2000_fieldcat_init
    Regards
    Vasu

  • Load and save text file???

    hi,i've this program works as far as i know.what i need to do now is load the file when the program starts and saves any updates made when i exit the program to the text file called "PublicationList.txt" how can i do this?i dont know where to start.if someone can show me the code to put in so it works that would be what i need please.thanks alot if you can help.
    The text file look contains the information as so:
    PubID 1 Pubname Times Pubtype National Pub UM Status A PPR 50
    PubID 2 Pubname Guardian Pubtype National Pub UM Status A PPR 60
    PubID 3 Pubname Sun Pubtype National Pub UM Status A PPR 30
    public class publication
    public int PublicationID;
    public String publicationname;
    public String publisher;
    public String PricePerIssue;
    public String pubstatus;
    public String publicationtype;
    public publication(int NewPublicationID, String Newpublicationname, String Newpublisher, String NewPricePerIssue, String Newpubstatus, String Newpublicationtype)
    PublicationID = NewPublicationID;
    publicationname = Newpublicationname;
    publisher = Newpublisher;
    PricePerIssue = NewPricePerIssue;
    pubstatus = Newpubstatus;
    publicationtype = Newpublicationtype;
    public String toString ()
    String pubreport = "---------------------------Publication-Information-----------------------------\n\n";
    pubreport += "Publication ID:" PublicationID" Publication Title: " publicationname"\n";
    pubreport += " publisher: " publisher " price Per Issue: " PricePerIssue"\n";
    pubreport += " publication Status: " pubstatus " publication Type: " publicationtype"\n";
    return pubreport;
    public void SetPublicationID(int PubID)
    PublicationID = PubID;
    public int GetPublicationID()
    return PublicationID;
    public void Setpublicationname(String pubname)
    publicationname = pubname;
    public String Getpublicationname()
    return publicationname;
    public void Setpublisher(String Pub)
    publisher = Pub;
    public String Getpublisher()
    return publisher;
    public void SetPricePerIssue(String PPI)
    PricePerIssue = PPI;
    public String GetPricePerIssue()
    return PricePerIssue;
    public void Setpubstatus(String Status)
    pubstatus = Status;
    public String Getpubstatus()
    return pubstatus;
    public void Setpublicationtype(String Pubtype)
    publicationtype = Pubtype;
    public String Getpublicationtype()
    return publicationtype;
    import java.util.*;
    import publication;
    public class PublicationContainer
    LinkedList PubList;
    public PublicationContainer()
    PubList = new LinkedList();
    public int add (publication newpublication)
    PubList.addLast(newpublication);
    return PubList.size();
    private class PubNode
    public publication pubrecord;
    public PubNode next;
    public PubNode (publication thepublicationrecord)
    publication p = thepublicationrecord;
    next = null;
    public String toString()
    return PubList.toString();
    public void remove(int PubID)
    PubList.remove(PubID);
    public publication get(int PubID)
    return (publication)PubList.get(PubID);
    public void set(int PubID,publication newpublication)
    PubList.set(PubID, newpublication);
    import cs1.Keyboard;
    import publication;
    import java.util.*;
    public class publicationmain
    public static void main(String args[])
    PublicationContainer pubdatabase = new PublicationContainer();
    int userchoice;
    boolean flag = false;
    while (flag == false)
    System.out.println("------------------------------------Publications--------------------------------");
    System.out.println();
    System.out.println("please Make a Selection");
    System.out.println();
    System.out.println("1 to add publication");
    System.out.println("2 to delete publication");
    System.out.println("0 to quit");
    System.out.println("3 to View all publications");
    System.out.println("4 to Edit a publication");
    System.out.println();
    userchoice = Keyboard.readInt();
    switch (userchoice)
    case 1:
    String PubName;
    String PricePerIssue;
    String Publisher;
    String Pubstatus;
    String Pubtype;
    int PubID;
    System.out.println ("Enter Publication ID:");
    PubID = Keyboard.readInt();
    System.out.println("Enter Publication Name:");
    PubName = Keyboard.readString();
    System.out.println("Enter Publisher Name");
    Publisher = Keyboard.readString();
    System.out.println("Enter Price per Issue:");
    PricePerIssue = Keyboard.readString();
    System.out.println("Enter Publication status");
    Pubstatus = Keyboard.readString();
    System.out.println("Enter Publication type:");
    Pubtype = Keyboard.readString();
    pubdatabase.add (new publication(PubID, PubName, Publisher, PricePerIssue, Pubstatus, Pubtype));
    break;
    case 0:
    flag = true;
    case 2:
    System.out.println ("Enter Publication ID:");
    PubID = Keyboard.readInt();
    pubdatabase.remove (PubID);
    System.out.println ("publication: "+(PubID)+" removed");
    System.out.println();
    break;
    case 3:
    System.out.println (pubdatabase);
    break;
    case 4:
    System.out.println ("Enter Publication to be edited by Publication ID: ");
    PubID = Keyboard.readInt();
    pubdatabase.remove (PubID);
    String PubName1;
    String PricePerIssue1;
    String Publisher1;
    String Pubstatus1;
    String Pubtype1;
    int PubID1;
    System.out.println ("Enter Publication ID:");
    PubID1 = Keyboard.readInt();
    System.out.println("Enter Publication Name:");
    PubName1 = Keyboard.readString();
    System.out.println("Enter Publisher Name");
    Publisher1 = Keyboard.readString();
    System.out.println("Enter Price per Issue:");
    PricePerIssue1 = Keyboard.readString();
    System.out.println("Enter Publication status");
    Pubstatus1 = Keyboard.readString();
    System.out.println("Enter Publication type:");
    Pubtype1 = Keyboard.readString();
    pubdatabase.add (new publication(PubID1, PubName1, Publisher1, PricePerIssue1, Pubstatus1, Pubtype1))
    break;
    default:
    System.out.println("Incorrect Entry");
    }

    public void readFile()
         BufferedReader br = new BufferedReader( new FileReader("PublicationList.txt") );
         String row;
         while( (row = br.readLine() ) != null)
              StringTokenizer st = new StringTokenizer(row," ");
              String temp = st.nextToken();
              String pubid = st.nextToken();
              temp = st.nextToken();
              String pubname = st.nextToken();
              temp = st.nextToken();
              String pubtype = st.nextToken();
              temp = st.nextToken();
              String pub = st.nextToken();
              temp = st.nextToken();
              String status = st.nextToken();
              temp = st.nextToken();
              String ppr = st.nextToken();
              // now you have in the Strings the values you needed
              // so what you want to do now
         } // read next line
         br.close();
    }try the writing on your own.
    tobias

  • File load and save errors???

    hi,i'am unable to get my file to oad and save in this class.i get 5 errors 1."Exception java.io.FileNotFoundEception must be caught or be declared in the throws clause" 2."Incompatible type for constructor.Cant convert java.io.FileInputStream to java.util.Properties" 3."Undefined variable: FileInputStream" 4."Variable 'p' is already defined in this method" 5. Incompatible type for constructor.cant covert java.io.FileInputStream to java.util.Properties.can someone please show me how to change this so it will compile and work?thanks
    import cs1.Keyboard;
    import publication;
    import java.util.*;
    import java.io.*;
    public class publicationmain
    public static void main(String args[])
    PublicationContainer pubdatabase = new PublicationContainer();
    int userchoice;
    boolean flag = false;
    while (flag == false)
    File file = new File("publicationsList.txt");
    //1st error on line below
    FileInputStream inputStream = new FileInputStream(file);
    //2nd error here
    Properties p = new Properties(inputStream);
    String myPublicationID = p.getProperty("PublicationID", defaultValue);
    System.out.println("------------------------------------Publications--------------------------------");
    System.out.println();
    System.out.println("please Make a Selection");
    System.out.println();
    System.out.println("1 to add publication");
    System.out.println("2 to delete publication");
    System.out.println("0 to quit");     
    System.out.println("3 to View all publications");
    System.out.println("4 to Edit a publication");
    System.out.println();
    userchoice = Keyboard.readInt();
    switch (userchoice)     
    case 1:
    String PubName;
    String PricePerIssue;
    String Publisher;
    String Pubstatus;
    String Pubtype;
    int PubID;
    System.out.println ("Enter Publication ID:");
    PubID = Keyboard.readInt();
    System.out.println("Enter Publication Name:");
    PubName = Keyboard.readString();
    System.out.println("Enter Publisher Name");
    Publisher = Keyboard.readString();
    System.out.println("Enter Price per Issue:");
    PricePerIssue = Keyboard.readString();
    System.out.println("Enter Publication status");
    Pubstatus = Keyboard.readString();
    System.out.println("Enter Publication type:");
    Pubtype = Keyboard.readString();
    pubdatabase.add (new publication(PubID, PubName, Publisher, PricePerIssue, Pubstatus, Pubtype));
    break;
    case 0:
    //3rd error here
    FileInputStream = new FileInputStream(file);
    //4th and 5th error here
    Properties p = new Properties(inputStream);
    p.put("PublicationID", PubID);
    p.put("PublicationName", PubName);
    p.put("PublisherName" , Publisher);
    p.put("PriceperIssue" , PricePerIssue);
    p.put("PublicationStatus" , Pubstatus);
    p.put("PublicationType" , Pubtype);
    p.store(outputStream, "My Header");
    flag = true;
    case 2:
    System.out.println ("Enter Publication ID:");
    PubID = Keyboard.readInt();
    pubdatabase.remove (PubID);
    System.out.println ("publication: "+(PubID)+" removed");
    System.out.println();
    break;
    case 3:
    System.out.println (pubdatabase);
    break;
    case 4:
    System.out.println ("Enter Publication to be edited by Publication ID: ");
    PubID = Keyboard.readInt();
    pubdatabase.remove (PubID);
    String PubName1;
    String PricePerIssue1;     
    String Publisher1;
    String Pubstatus1;
    String Pubtype1;
    int PubID1;
    System.out.println ("Enter Publication ID:");
    PubID1 = Keyboard.readInt();
    System.out.println("Enter Publication Name:");
    PubName1 = Keyboard.readString();
    System.out.println("Enter Publisher Name");
    Publisher1 = Keyboard.readString();
    System.out.println("Enter Price per Issue:");
    PricePerIssue1 = Keyboard.readString();
    System.out.println("Enter Publication status");
    Pubstatus1 = Keyboard.readString();
    System.out.println("Enter Publication type:");
    Pubtype1 = Keyboard.readString();
    pubdatabase.add (new publication(PubID1, PubName1, Publisher1, PricePerIssue1, Pubstatus1, Pubtype1));
    break;
    default:
    System.out.println("Incorrect Entry");
    }

    i'm sorry to ask this, but how long are you programming in java ? not so long, right ?
    maybe you should first learn how the syntax in java is. maybe you should take a look at the java tutorial.
    the errors you get are simple, so normally you should be able to solve these problems yourself.
    and, if you want to post another message with the same topic, please use the already existing (started by you) threads like
    http://forum.java.sun.com/thread.jsp?forum=31&thread=230202
    or
    http://forum.java.sun.com/thread.jsp?forum=31&thread=230185
    you can reply to your postings. you do not need to start a new thread.
    tobias

  • How to load images from file system and save in database

    Hello Fellows!
    I have a problem and try to explain:
    Plateform:
    Operating System: Windows 98, Form 6i and Oracle 8
    Table in the database
    Table:Emp_pic with columns i.e. (empno and pic type long raw)
    In forms, I have a data block which contain the columns of the emp_pic table and a control block which have a push button contains the trigger as follow, also attach PL/SQL library i.e. D2kWUTIL.PLL
    When-Button-Pressed (Trigger)
    Declare
    temp varchar2(400);
    Begin
    temp := win_api_dialog.open_file('Open File','d:\pic','*.tif',true,win_api.ofn_flag_default,false);
    read_image_file(temp,'tif','emp_pic.pic');
    end;
    The problem when I pressed the button it does not display open dialog box what is the wrong with the code or else.
    Thanks in advance
    (BASIT)

    What do you mean "it did not work"? You need to post more information, such as what errors you got.
    My guess is that it did work, but it ran on the middle tier, which is where Forms is running. Commands like that need more work to execute on the client.
    Go to the Forms area on OTN and download the Oracle9i Forms Samples. They have demos and source code to move files from the client to the server.
    Coming soon will be a utility called WebUtil which will make this even easier.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • Generate Script from table with Clob and save other Database

    Hi
    How can I to read data from Clob column and insert into other table in other Database,
    The fist Table is in Test Quality and second in Production
    Are there way without to use Export/ Import ?
    Can I to use Loader ?
    Using 9i

    3360 wrote:
    muttleychess wrote:
    mschnatt wrote:
    than you only can try the db-link
    CREATE DATABASE LINK <dblink-name> CONNECT TO <user> IDENTIFIED BY <pwd> USING '<tnsnames-entry>';
    and make table
    create table ....
    as select ....Thank , but too no work :-( :-(
    SQL> select id,clob_data from myclob@teste;
    select id,clob_data from myclob@teste
    ERRO na linha 1:
    ORA-22992: cannot use LOB locators selected from remote tables
    Well you didn't do what the reply said to do
    and make table
    create table ....
    as select ....Also in the manual, you could save yourself a lot of time if you would open it.
    http://docs.oracle.com/cd/B14117_01/appdev.101/b10796/adlob_wo.htm#1006314
    >
    The following syntax is supported on remote LOB columns:
    CREATE TABLE t AS SELECT * FROM table1@remote_site;
    INSERT INTO t SELECT * FROM table1@remote_site;
    UPDATE t SET lobcol = (SELECT lobcol FROM table1@remote_site);
    INSERT INTO table1@remote_site select * from local_table;
    UPDATE table1@remote_siteset lobcol = (SELECT lobcol FROM local_table);
    DELETE FROM table1@remote_site <WHERE clause involving non_lob_columns>
    This is the only supported syntax involving LOBs in remote tables. No other usage is supported.
    >[h1]Thank you very much, very very good [h1]

Maybe you are looking for

  • Dunning Wizard and Interest

    Hi everyone, I have the automated dunning wizard how to guide and things seem to work fine and I get the process. Problem is... I don't see anything after I run the wizard.  No accounts receivable entry, nothing in incoming payments, nothing.  It sho

  • Unable to run Flex application with IIS

    Hi, I'm new to flex 3 application. I created a simple application using wizard from Flex IDE, but this application run well under ASP.net server but failed under IIS. Below is how i created the application 1. I created a flex project running on APS.n

  • Acrobat X/Outlook 2010 Home Page/Webfolders Issue

    All - I will apologize upfront if this does not belong in this forum, or it is felt that this is not an Acrobat issue. We utilize a little used feature called Home Page/Webfolders in Outlook. Basically what we all grown accustomed to is creating a fo

  • 60 Fps video repeating Frames?

    I have a clip in After Effects CS5, its 59.94 Fps, in a 59.94 fps Comp. the video playes back very strange, every 2 frames or so, it repeates a previous frame. Here is an example, it goes, 1-2-1-2-3-2-3-4-3 ect... Can anyone help me solve this proble

  • [SOLVED] XFCE4: how to start another X session?

    Hi there! I recently dumped KDE4 in favor of XFCE. Now the question is: if user A is logged in, how can user B start another X session to log in? In KDE's kickoff, there was this handy entry "Start new session", which I'm missing in XFCE (I'm still u