• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No problem
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic