File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes file selected by JFileChooser and storing that image file in ms-access Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply locked New topic
Author

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

ishan dave
Ranch Hand

Joined: Apr 16, 2007
Posts: 39
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
Marshal

Joined: Mar 22, 2005
Posts: 41040
    
  43
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: file selected by JFileChooser and storing that image file in ms-access
 
Similar Threads
Storing an Java object in Access
Fetching Image Data
storing image file in ms-access using jdbc
Storing Picture in Access DataBase
how to upload pdf files to My sql with java