wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
BLOB data type
FilterInputStream
Readers and Stream classes can be chained?
How to convert an object into BLOB
How to store whole XML in a table of a database