Converting String to BLOB

Posted on 2004-05-03
Last Modified: 2008-02-26
Code for converting Java String into zzip file and then converting into BLOB and then storing in the DB2 database
Question by:sunny08
  • 3

Expert Comment

ID: 10978959
Is this a homework?
what do you have until now?
LVL 12

Accepted Solution

Giant2 earned 125 total points
ID: 10993745
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.
LVL 12

Expert Comment

ID: 11196712
Do you solved?
LVL 12

Expert Comment

ID: 11396136
Maybe the things I suggest are correct.

Author Comment

ID: 11400242
Hi all,
     Thankyou for posting the comments. I resolved this issue long time back but I forgot to close this question. sorry for that.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
countX 22 81
mapBully challenge 6 113
C# Error - Add Failed 12 78
Basic Java Case or If-Else statement... 3 43
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now