Results 1 to 2 of 2
  1. #1
    cornell is offline Member
    Join Date
    Feb 2012
    Posts
    1
    Rep Power
    0

    Default Saving an image to my sql database from a openDialog box in a java application

    hi
    i need help in regard to the above subject..i have a program that is able to open a image using a open dialog box and display it to a label
    my problem is the above program also picks certain details from a user e.g username,password and store it in a database..but i am not able to input the image opened to a datbase
    pliz help

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,519
    Blog Entries
    7
    Rep Power
    20

    Default Re: Saving an image to my sql database from a openDialog box in a java application

    Quote Originally Posted by cornell View Post
    hi
    i need help in regard to the above subject..i have a program that is able to open a image using a open dialog box and display it to a label
    my problem is the above program also picks certain details from a user e.g username,password and store it in a database..but i am not able to input the image opened to a datbase
    pliz help
    Store your image as a blob in your database; you can get an InputStream or OutputStream from your blob; hook up the stream to the ImageIO utility class and you're in business.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Replies: 29
    Last Post: 01-07-2012, 04:05 PM
  2. Replies: 0
    Last Post: 11-25-2011, 06:16 AM
  3. how to extract specific data from image file and saving in to database
    By Balasubrahmanyam in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 07-27-2011, 02:19 PM
  4. Exception while saving in database
    By kirtichopra2003 in forum Web Frameworks
    Replies: 1
    Last Post: 10-24-2009, 02:15 AM
  5. Replies: 0
    Last Post: 03-30-2009, 07:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •