Results 1 to 4 of 4
- 07-18-2009, 06:05 PM #1
Member
- Join Date
- Jul 2009
- Posts
- 2
- Rep Power
- 0
- 07-18-2009, 06:11 PM #2
A good place to start: How to Use File Choosers
- 07-18-2009, 06:18 PM #3
Member
- Join Date
- Jul 2009
- Posts
- 2
- Rep Power
- 0
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
- 07-25-2009, 05:33 PM #4
Member
- Join Date
- Jul 2009
- Posts
- 17
- Rep Power
- 0
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
-
Add an image to JFrame
By Eranga in forum AWT / SwingReplies: 4Last Post: 02-01-2010, 03:09 PM -
JFrame + image
By Blacknight in forum New To JavaReplies: 2Last Post: 05-07-2009, 05:34 AM -
image retrieval from sql server using java
By ravee in forum JDBCReplies: 6Last Post: 08-22-2008, 12:52 PM -
Uploading image using JSP
By Java Tip in forum Java TipReplies: 0Last Post: 01-11-2008, 09:16 AM -
Lucene Image REtrieval 0.5.4
By JavaBean in forum Java SoftwareReplies: 0Last Post: 07-11-2007, 03:54 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks