Saving an image to my sql database from a openDialog box in a java application
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
Re: Saving an image to my sql database from a openDialog box in a java application
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.
Originally Posted by cornell