Converting String to BLOB

Code for converting Java String into zzip file and then converting into BLOB and then storing in the DB2 database
sunny08Asked:
Who is Participating?
 
Giant2Connect With a Mentor Commented:
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
 
yasser_helmyCommented:
Is this a homework?
what do you have until now?
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.