This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Image Uploading in database through JSP

Deepti Gupta
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are trying to uplaod an image to our database though the web page. the codes are as follows.
1) This is the form though which we are sending all the info. to be inserted into the database.

2)This is the jsp file which is intercating with the database:

3) and this is the error which is coming:

When we are not trying to insert any image then the code is working fine but as soon as we try to insert an image it gives NullPointer error.

Please help.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic