File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
About setBLOb & getBlob
Joined: Dec 25, 2008
Jan 05, 2009 06:56:43
I want to insert byte array in database schema as follows:
I have done this in following way But I am getting NULL pointer exception.
//byte msgval .. contains byte values like 49 50 53 etc.
// for prepared statement I have used st2.setBlob(4,msg);
Joined: Oct 08, 2006
Jan 05, 2009 07:23:27
It´s hard to help without knowing the details.
I agree. Here's the link:
subject: About setBLOb & getBlob
inserting BLOBs into MySQL database
How to convert an object into BLOB
inserting blob with CMP
Inserting image into the oracle database
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014