This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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
 
jQuery in Action, 3rd edition