I want to upload an image to my DB.
I am using
servlet to upload and hibernate to store.
Everything is working fine but when i download image it doesn't show the image, although the file gets created as it is.
I tried saving it to some location immediately after uploading but same problem.
Here's my code snippet from servlet...