This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Image Uploading in database through JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Image Uploading in database through JSP" Watch "Image Uploading in database through JSP" New topic
Author

Image Uploading in database through JSP

Deepti Gupta
Ranch Hand

Joined: Jul 22, 2010
Posts: 30
Hey.
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Image Uploading in database through JSP
 
Similar Threads
upload data and image at the same time
Problem in uploading image to to mysql database
JSP Error
Getting error
Doubts in jsp