File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

file selected by JFileChooser and storing that image file in ms-access

 
ishan dave
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Dear all,

I am having a JFileChooser in which i select a image file now i want to store that particular file in MS-Access, I try it using OLE Object type in ms-access and object type in Java but i got following exception

java.sql.SQLException: SQL Exception : Unknown SQL Type for PreparedStatement.setObject (SQL Type=1111

So anyone please guide me that how to store an image file into ms-access database using the java.

ishan dave
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread in the JDBC forum, where it is a better fit.
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic