Link to home
Start Free TrialLog in
Avatar of thunderwonder
thunderwonder

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of thunderwonder
thunderwonder

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial