Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can you Help to make the make application capabile of saving Image in Database using JDBC?

 
Farhad Rahmati
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends

I am developing a Java desktop application.

now I am trying to save images in to database and retrieve image from database.

what I want you to help me with. Just give me some idea or very simple like intance code. thanks for that

what I want to do is:

1. I have a button. when the user clicks on the button. the file ChooserWindow should appears and lets the user to select the images.
2. the select image should be displayed in the window, JFram or whatever, a special place for the image in the window
3 ability to save the image in to the database
4. ability to retrieve and query the image.

What I can do is:
1.Database connectivity
2. saving and retrieving data, NOt Object like image and video

what I can't do is:
1. using the file chooser to selecte the image
2. showing the image in the window for a specific record
3. saving image objects in to database.

I would appriciate your help
Thanks Farhad
 
Vijitha Kumara
Bartender
Pie
Posts: 3930
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Farhad,

... Just give me some idea or very simple like intance code...

Please read NotACodeMill.
Regarding what you have issues:
1: File chooser sample here
2. & 3.: You have to save the image as BLOB data type in the Database. A very old thread but might be useful here
 
Farhad Rahmati
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vijitha

Thank you very much for your link, Just working on it to get it done

I have alread read the NOTACodMill.
and I am awar of that

I did ask for a sample code though like an example and I got it in your links, thank you for that

Cheers
Farhad
 
Vijitha Kumara
Bartender
Pie
Posts: 3930
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No problem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic