Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2094
  • Last Modified:

Converting String to BLOB

Code for converting Java String into zzip file and then converting into BLOB and then storing in the DB2 database
0
sunny08
Asked:
sunny08
  • 3
1 Solution
 
yasser_helmyCommented:
Is this a homework?
what do you have until now?
0
 
Giant2Commented:
If you are converting from String to BLOB for DB2 you can see at the DB2-ODBC bridge.
There is the class Blob and the method setBytes to assign value to a Blob object.
In java it's an interface, so you must see the documentation of DB2-ODBC bridge you use.

Bye, Giant.
0
 
Giant2Commented:
Do you solved?
0
 
Giant2Commented:
Maybe the things I suggest are correct.
0
 
sunny08Author Commented:
Hi all,
 
     Thankyou for posting the comments. I resolved this issue long time back but I forgot to close this question. sorry for that.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now