Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

MySql jar file constructor

843859Oct 12 2006
Hello,

I am developing web application using JSP and MySql. I am using netBeans 4.1 as IDE.

To connect with database I have included jar file "mysql-connector-java-3.1.10-bin.jar" to Libraries folder of my project in netBeans. This jar file contains many classes, one which I want to use is com.mysql.jdbc.Blob.

In my jsp file I want to call Blob(byte[]) constructor. For that I am doing :

com.mysql.jdbc.Blob myBlob = new com.mysql.jdbc.Blob(dataBytes);
Where dataBytes is an initialized array of bytes.

When I compile my jsp file I get error "can not find symbol". It says it is not able to find constructor.

So where I am making mistake. To resolve this problem which actions should I take??

Jahnvi
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 9 2006
Added on Oct 12 2006
0 comments
92 views