File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and Relational Databases and the fly likes Why setBlob do not work with FileInputStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Why setBlob do not work with FileInputStream" Watch "Why setBlob do not work with FileInputStream" New topic
Author

Why setBlob do not work with FileInputStream

Gaurav Chikara
Ranch Hand

Joined: Jun 09, 2000
Posts: 410
if we pass FileInputStream Object in setBlob parameter it donot work then how can we set out blob parameter?


SCJP,SCWCD,SCBCD<br />If Opportunity doesn't knock then build the door
Brett Spell
Ranch Hand

Joined: Feb 24, 2001
Posts: 97
Gaurav,
To set the value of a Blob field, use setBinaryStream() instead of setBlob().
------------------
Brett Spell
Author, Professional Java Programming
Gaurav Chikara
Ranch Hand

Joined: Jun 09, 2000
Posts: 410

Originally posted by Brett Spell:
Gaurav,
To set the value of a Blob field, use setBinaryStream() instead of setBlob().

Thnkx u r great
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why setBlob do not work with FileInputStream
 
It's not a secret anymore!