This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes Using JDBC SQLite, Eclipse SWT Image and JAVA to insert, store and retrieve Images. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Using JDBC SQLite, Eclipse SWT Image and JAVA to insert, store and retrieve Images." Watch "Using JDBC SQLite, Eclipse SWT Image and JAVA to insert, store and retrieve Images." New topic
Author

Using JDBC SQLite, Eclipse SWT Image and JAVA to insert, store and retrieve Images.

shay main
Greenhorn

Joined: Oct 28, 2010
Posts: 6
Hey all,

I'm not sure if this should be in the SWT section or the JDBC section. Can you post the same message in two separate forum categories?

I'm writing a basic Java application that allows a user to insert details about individuals into an SQLite database. I'm using Eclipse SWT for the GUI.

Eclipse SWT defines a type Image (org.eclipse.swt.graphics.Image) for displaying Images in a GUI.

I am trying to allow a user to browse the file system, select an image and then insert that image into a database. I also want to be able to retrieve that image from the database and display it in the GUI.

All pretty straightforward, but for the life of me I can't get it to work!! I've searched around a lot too and can't seem to find a solution to this.

I'll attach my code below, and I'm using:
Eclipse IDE for Java Developers (3.6)
sqlite-jdbc-3.7.2.jar
jdk1.6.0_22

Thanks in advance!

Shay

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Using JDBC SQLite, Eclipse SWT Image and JAVA to insert, store and retrieve Images.
 
Similar Threads
SWT resize/modal question
Using Eclipse SWT Image, JDBC SQLite and JAVA to insert, store and retrieve Images.
swt styledtext search/find next
SWT Text in a single row
Problem creating a dynamic form with SWT