Results 1 to 4 of 4
  1. #1
    deepesh is offline Member
    Join Date
    Jul 2009
    Posts
    2
    Rep Power
    0

    Default image uploading and retrieval in jframe

    hi!
    i have a problem and it's urgent.
    i have a jframeform and i want to get the address of a file and put it in a ms access table and then retrieve it along with other data in other form.

    please help.it's urgent!

    thanks in advance

  2. #2
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    9

    Default

    A good place to start: How to Use File Choosers

  3. #3
    deepesh is offline Member
    Join Date
    Jul 2009
    Posts
    2
    Rep Power
    0

    Default

    sir i am not getting it

    can you give me the code
    actually i am putting it on entry form in which a user enters details and he wants to add a photo to his info.now i want that he may choose the pic stored in the pc and then that pic appears in the form till other fields are filled and when he hits the submit button.all the details plus photo get saved in a ms-access database.
    i want to get all details along with photo on next form.
    it's a bit urgent.
    can u help

    thanks in advance

  4. #4
    ak88 is offline Member
    Join Date
    Jul 2009
    Posts
    17
    Rep Power
    0

    Default

    Use the below code to inser into the ms access
    I have created dsn name mydsn and my table name is ak
    src and dst are the two textfields i used.


    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con=DriverManager.getConnection("jdbc:odbc:mydsn", "ak"," ");
    PreparedStatement smt=con.prepareStatement("insert into ak values(?,?)");
    smt.setString(1,src.getText());
    smt.setString(2,dst.getText());
    smt.executeUpdate();
    con.close();

Similar Threads

  1. Add an image to JFrame
    By Eranga in forum AWT / Swing
    Replies: 4
    Last Post: 02-01-2010, 04:09 PM
  2. JFrame + image
    By Blacknight in forum New To Java
    Replies: 2
    Last Post: 05-07-2009, 06:34 AM
  3. Replies: 6
    Last Post: 08-22-2008, 01:52 PM
  4. Uploading image using JSP
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-11-2008, 10:16 AM
  5. Lucene Image REtrieval 0.5.4
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 07-11-2007, 04:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •