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("imag e"); in the servlet to the inputstream so that it can be sent to the database using preparedstatement.setBinar yStream() method.
Now how to convert this string received as request.getParameter("imag
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.