Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Blob and FileInputStream

800435Feb 1 2007 — edited Dec 24 2007
Hi,
How can I put an image into a java.sql.Blob?

I have this:
File imageFile = new File("c:\\kika1.jpg");
FileInputStream fis = new FileInputStream(imageFile);
and I want to put the fis into a Blob object.

thanks in advance,

Manuel Leiria
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 21 2008
Added on Feb 1 2007
12 comments
2,445 views