Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to store image in JSP from BLOB captured in Oracle

 
pavan kumarthati
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote the following program But i am getting the NullpointerException regarding the storage of image in storeimage.jsp


form.jsp


storeImage.jsp

Any Answer regarding this is really appreciative........
 
ujjwal soni
Ranch Hand
Posts: 403
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Try using below code.



Cheers!!!

Ujjwal B Soni
<MSU BCA STUDENT 2007>

Helping hands are better than praying lips !!!
 
Venkat Sadasivam
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might need to use Multipart parser to get uploaded file content in server-side.
http://commons.apache.org/fileupload/using.html
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic