Have you tried the API?  java.util.sql.Blob should get you there.  More
usage info can be found in the bible of JDBC: White, et al, "JDBC API
Tutorial and Reference, 2d Ed." (Sun/Addison-Wesley  1999): 282-288, and
Bales, "Java Programming with JDBC" (O'Reilly 2002): 246-272.

Mark

-----Original Message-----
From: Chester Chen
Sent: Tuesday, December 16, 2003 11:40 AM

   I am trying to use a BLOB to store some binary data and wonder how to do
this in JDBC.
   I have search the java.sun.com site, oracle and google sites and did not
find any thing useful.


   The JDBC API tutorial reference book only give examples to update BLOB,
i.e. you read BLOB from database
and then setBLOB to update it.

   I have found any example to show me how to create an new BLOB record, has
any done this before ?

Chester

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to