Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why setBlob do not work with FileInputStream

 
Gaurav Chikara
Ranch Hand
Posts: 412
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if we pass FileInputStream Object in setBlob parameter it donot work then how can we set out blob parameter?
 
Brett Spell
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gaurav,
To set the value of a Blob field, use setBinaryStream() instead of setBlob().
------------------
Brett Spell
Author, Professional Java Programming
 
Gaurav Chikara
Ranch Hand
Posts: 412
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

Thnkx u r great
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic