• Post Reply Bookmark Topic Watch Topic
  • New Topic

saving image to database  RSS feed

 
sam onikosi
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Good people

I was trying to save an image from Jlable to database
but is giving me error
below is my code



here is the error

 
Ivan Jozsef Balazs
Rancher
Posts: 999
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are several problems here.

The error message you presented is however tell-taling.


Did you check the outcome of this statement? What value do you think sql will be assigned?



Of what type is the field logo?

How is a field of that type supposed to be handled?



 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am puzzled. You know about PreparedStatement, yet still do not use it properly to set values.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!