• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 514
  • Last Modified:

uploading a file using nsIDOMFile to a BLOB field in database with servlets

Hi i want to upload a JPG image file in a BLOB field in database. Since <input type="file" /> does not generate full path in firefox3 so i am using getAsBinary(); method of nsIDOMFile to send image's data in raw binary format to the servlet.
Now how to convert this string received as request.getParameter("image"); in the servlet to the inputstream so that it can be sent to the database using preparedstatement.setBinaryStream() method.
0
thunderwonder
Asked:
thunderwonder
1 Solution
 
thunderwonderAuthor Commented:
I think this question is too complex for the experts here & i haven't got much time so i'll withdraw it and look somewhere else
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now