aspose file tools*
The moose likes JDBC 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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
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: 96
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